mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
Create datecount test
This commit is contained in:
parent
37fc6c7465
commit
7880feec94
3 changed files with 27 additions and 0 deletions
12
features/data/configs/datecount.yaml
Normal file
12
features/data/configs/datecount.yaml
Normal 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: "|"
|
5
features/data/journals/datecount.journal
Normal file
5
features/data/journals/datecount.journal
Normal 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.
|
|
@ -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
|
||||||
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue