Create datecount test

This commit is contained in:
karimpwnz 2021-01-04 02:54:11 +02:00
parent 37fc6c7465
commit 7880feec94
3 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,12 @@
default_hour: 9
default_minute: 0
editor: ''
encrypt: false
highlight: true
journals:
default: features/journals/datecount.journal
linewrap: 80
tagsymbols: "@"
template: false
timeformat: "%Y/%m/%d %H:%M"
indent_character: "|"

View file

@ -0,0 +1,5 @@
[2020-05-14 10:22] First entry.
[2021-10-29 10:30] Second entry.
[2021-10-29 11:13] Third entry.

View file

@ -554,3 +554,13 @@ Feature: Custom formats
| basic_encrypted | | basic_encrypted |
| basic_folder | | basic_folder |
| basic_dayone | | basic_dayone |
Scenario: Export date counts
Given we use the config "datecount.yaml"
When we run "jrnl --export datecount"
Then we should get no error
And the output should be
"""
2020-05-14, 1
2021-10-29, 2
"""