add new 'NothingToDelete' error to replace old behavior

This commit is contained in:
Jonathan Wren 2022-02-19 16:57:56 -08:00
parent e05257fe47
commit 94feae735e
3 changed files with 9 additions and 5 deletions

View file

@ -41,6 +41,7 @@ Feature: Delete entries from journal
Scenario Outline: Delete flag with nonsense input deletes nothing (issue #932)
Given we use the config "<config_file>"
When we run "jrnl --delete asdfasdf"
Then the output should contain "NothingToDelete"
When we run "jrnl -99 --short"
Then the output should be
2020-08-29 11:11 Entry the first.