mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 13:36:14 +02:00
Tests for DayOne Tagging
This commit is contained in:
parent
46da1f077e
commit
66ea7e2b1e
1 changed files with 27 additions and 0 deletions
|
@ -15,3 +15,30 @@ Feature: DayOne Ingetration
|
||||||
2013-08-17 11:37 This is a DayOne entry.
|
2013-08-17 11:37 This is a DayOne entry.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Scenario: Writing into Dayone
|
||||||
|
Given we use the config "dayone.json"
|
||||||
|
When we run "jrnl 01 may 1979: Being born hurts."
|
||||||
|
and we run "jrnl -until 1980"
|
||||||
|
Then the output should be
|
||||||
|
"""
|
||||||
|
1979-05-01 09:00 Being born hurts.
|
||||||
|
"""
|
||||||
|
|
||||||
|
Scenario: Loading tags from a DayOne Journal
|
||||||
|
Given we use the config "dayone.json"
|
||||||
|
When we run "jrnl --tags"
|
||||||
|
Then the output should be
|
||||||
|
"""
|
||||||
|
work : 1
|
||||||
|
play : 1
|
||||||
|
"""
|
||||||
|
|
||||||
|
Scenario: Saving tags from a DayOne Journal
|
||||||
|
Given we use the config "dayone.json"
|
||||||
|
When we run "jrnl A hard day at @work"
|
||||||
|
and we run "jrnl --tags"
|
||||||
|
Then the output should be
|
||||||
|
"""
|
||||||
|
work : 2
|
||||||
|
play : 1
|
||||||
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue