Add unreadable date test

Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
This commit is contained in:
Micah Jerome Ellison 2021-02-23 18:56:10 -08:00 committed by Jonathan Wren
parent f686e2b9f0
commit 0c9b6cf85f
2 changed files with 11 additions and 3 deletions

View file

@ -1,8 +1,8 @@
[2019-07-18 14:23] Entry subject
[2019-07-18 14:23] The first entry
Time machines are possible. I know, because I've built one in my garage.
[2019-07-19 14:23] Entry subject
[2019-07-19 14:23] The second entry
I'm going to activate the machine. Nobody knows what comes next after this. Or before this?
[2019-07 14:23] Entry subject
[2019-07 14:23] The third entry
I've crossed so many timelines. Is there any going back?

View file

@ -129,3 +129,11 @@ Feature: Reading and writing to journal with custom date formats
When we run "jrnl -2"
Then the output should contain "I've lost track of time."
And the output should contain "Time has no meaning."
Scenario: Journals with readable dates AND unreadable dates should still contain all data.
Given we use the config "mostlyreadabledates.yaml"
When we run "jrnl --short"
Then the output should be
2019-07-01 14:23 The third entry
2019-07-18 14:23 The first entry
2019-07-19 14:23 The second entry