mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-27 21:16:14 +02:00
Suppress "Entry added" message if using default journal (#1561)
* Suppress "Entry added to default journal" message if using default journal * Replace "Entry added" BDD test steps with "we should get no error" now that the message is suppressed * Add positive and negative tests for "Entry added" message behavior
This commit is contained in:
parent
bb6491bd06
commit
f65f07dbcb
7 changed files with 57 additions and 35 deletions
|
@ -7,7 +7,7 @@ Feature: Reading and writing to journal with custom date formats
|
|||
# https://github.com/jrnl-org/jrnl/issues/117
|
||||
Given we use the config "simple.yaml"
|
||||
When we run "jrnl 2013-11-30 15:42: Project Started."
|
||||
Then the output should contain "Entry added"
|
||||
Then we should get no error
|
||||
When we run "jrnl -999"
|
||||
Then the output should contain "2013-11-30 15:42 Project Started."
|
||||
|
||||
|
@ -16,7 +16,7 @@ Feature: Reading and writing to journal with custom date formats
|
|||
# https://github.com/jrnl-org/jrnl/issues/185
|
||||
Given we use the config "simple.yaml"
|
||||
When we run "jrnl 26/06/2099: Planet? Earth. Year? 2099."
|
||||
Then the output should contain "Entry added"
|
||||
Then we should get no error
|
||||
When we run "jrnl -999"
|
||||
Then the output should contain "2099-06-26 09:00 Planet?"
|
||||
|
||||
|
@ -37,7 +37,7 @@ Feature: Reading and writing to journal with custom date formats
|
|||
Scenario Outline: Writing an entry from command line with custom date
|
||||
Given we use the config "<config_file>"
|
||||
When we run "jrnl <command>"
|
||||
Then the output should contain "Entry added"
|
||||
Then we should get no error
|
||||
When we run "jrnl -n 1"
|
||||
Then the output should contain "<expected_output>"
|
||||
|
||||
|
@ -91,7 +91,7 @@ Feature: Reading and writing to journal with custom date formats
|
|||
Given we use the config "simple.yaml"
|
||||
And now is "2019-03-12 01:30:32 PM"
|
||||
When we run "jrnl <command>"
|
||||
Then the output should contain "Entry added"
|
||||
Then we should get no error
|
||||
When we run "jrnl -1"
|
||||
Then the output should contain "<expected_output>"
|
||||
Then the output should contain the date "<date>"
|
||||
|
@ -113,7 +113,7 @@ Feature: Reading and writing to journal with custom date formats
|
|||
Given we use the config "simple.yaml"
|
||||
And now is "2019-03-12 01:30:32 PM"
|
||||
When we run "jrnl <command>"
|
||||
Then the output should contain "Entry added"
|
||||
Then we should get no error
|
||||
When we run "jrnl -1"
|
||||
Then the output should contain "<expected_output>"
|
||||
Then the output should contain the date "<date>"
|
||||
|
@ -183,11 +183,11 @@ Feature: Reading and writing to journal with custom date formats
|
|||
Given we use the config "dayone.yaml"
|
||||
And now is "<date>"
|
||||
When we run "jrnl yesterday: This thing happened yesterday"
|
||||
Then the output should contain "Entry added"
|
||||
Then we should get no error
|
||||
When we run "jrnl today at 11:59pm: Adding an entry right now."
|
||||
Then the output should contain "Entry added"
|
||||
Then we should get no error
|
||||
When we run "jrnl tomorrow: A future entry."
|
||||
Then the output should contain "Entry added"
|
||||
Then we should get no error
|
||||
When we run "jrnl -from yesterday -to today"
|
||||
Then the output should contain "This thing happened yesterday"
|
||||
And the output should contain "Adding an entry right now."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue