Add scenario for XML export

This commit is contained in:
Stav Shamir 2020-01-26 14:03:24 +02:00
parent e24beeffd0
commit 3c1496eed2
2 changed files with 39 additions and 0 deletions

View file

@ -82,3 +82,10 @@ Feature: Exporting a Journal
More stuff
more stuff again
"""
Scenario: Exporting to XML
Given we use the config "tags.yaml"
When we run "jrnl --export xml"
Then the output should be a valid XML string
And "entries" node in the xml output should have 2 elements
And "tags" in the xml output should contain ["@idea", "@journal", "@dan"]