mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-21 05:28:31 +02:00
added test
This commit is contained in:
parent
d5a09bd6d7
commit
6b1bc963e0
1 changed files with 8 additions and 0 deletions
|
@ -26,6 +26,12 @@ Feature: Basic reading and writing to a journal
|
||||||
| There is a blank line above this.
|
| There is a blank line above this.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Scenario: Multiline entry with punctuation
|
||||||
|
Given we use the config "basic.yaml"
|
||||||
|
When we run "jrnl This is. the title\\n This is the second line"
|
||||||
|
and we run "jrnl -n 1"
|
||||||
|
Then the output should contain "This is. the title"
|
||||||
|
|
||||||
Scenario: Writing an entry from command line
|
Scenario: Writing an entry from command line
|
||||||
Given we use the config "basic.yaml"
|
Given we use the config "basic.yaml"
|
||||||
When we run "jrnl 23 july 2013: A cold and stormy day. I ate crisps on the sofa."
|
When we run "jrnl 23 july 2013: A cold and stormy day. I ate crisps on the sofa."
|
||||||
|
@ -39,6 +45,8 @@ Feature: Basic reading and writing to a journal
|
||||||
When we open the editor and enter nothing
|
When we open the editor and enter nothing
|
||||||
Then we should see the message "[Nothing saved to file]"
|
Then we should see the message "[Nothing saved to file]"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Scenario: Writing an empty entry from the command line
|
Scenario: Writing an empty entry from the command line
|
||||||
Given we use the config "basic.yaml"
|
Given we use the config "basic.yaml"
|
||||||
When we run "jrnl" and enter nothing
|
When we run "jrnl" and enter nothing
|
||||||
|
|
Loading…
Add table
Reference in a new issue