Add scenario for yaml export

This commit is contained in:
Stav Shamir 2020-01-27 14:12:02 +02:00
parent 5559cb534f
commit f6bec97c58
2 changed files with 55 additions and 1 deletions

View file

@ -120,3 +120,19 @@ Feature: Exporting a Journal
"""
Scenario: Export to yaml
Given we use the config "tags.yaml"
And we created a directory named "exported_journal"
When we run "jrnl --export yaml -o exported_journal"
Then "exported_journal" should contain the files ["2013-04-09_i-have-an-idea.md", "2013-06-10_i-met-with-dan.md"]
And the content of exported yaml "exported_journal/2013-04-09_i-have-an-idea.md" should be
"""
title: I have an @idea:
date: 2013-04-09 15:39
stared: False
tags: idea, journal
(1) write a command line @journal software
(2) ???
(3) PROFIT!
"""