Add warning when --change-time used with no matching entries

This commit is contained in:
Richard Schneider 2022-04-23 20:54:06 -05:00
parent 14cba37bb9
commit 329d889fc3
3 changed files with 8 additions and 0 deletions

View file

@ -22,6 +22,7 @@ Feature: Change entry times in journal
Scenario Outline: Change time flag with nonsense input changes nothing
Given we use the config "<config_file>"
When we run "jrnl --change-time now asdfasdf"
Then the output should contain "No entries to modify"
When we run "jrnl -99 --short"
Then the output should be
2020-08-29 11:11 Entry the first.