diff --git a/tests/bdd/features/delete.feature b/tests/bdd/features/delete.feature index 28be63c3..6cc77d5b 100644 --- a/tests/bdd/features/delete.feature +++ b/tests/bdd/features/delete.feature @@ -11,7 +11,8 @@ Feature: Delete entries from journal N N Y - Then the error output should contain "1 entry deleted" + Then the error output should contain "3 entries found" + And the error output should contain "1 entry deleted" When we run "jrnl -99 --short" Then the output should be 2020-08-29 11:11 Entry the first. @@ -64,6 +65,7 @@ Feature: Delete entries from journal Given we use the config "" When we run "jrnl --delete @ipsum" and enter Y + Then the error output should contain "1 entry found" Then the error output should contain "1 entry deleted" When we run "jrnl -99 --short" Then the output should be @@ -82,7 +84,8 @@ Feature: Delete entries from journal When we run "jrnl --delete @ipsum @tagthree" and enter Y Y - Then the error output should contain "2 entries deleted" + Then the error output should contain "2 entries found" + And the error output should contain "2 entries deleted" When we run "jrnl -99 --short" Then the output should be 2020-08-31 14:32 A second entry in what I hope to be a long series. @@ -98,7 +101,8 @@ Feature: Delete entries from journal Given we use the config "" When we run "jrnl --delete -and @tagone @tagtwo" and enter Y - Then the error output should contain "1 entry deleted" + Then the error output should contain "1 entry found" + And the error output should contain "1 entry deleted" When we run "jrnl -99 --short" Then the output should be 2020-08-31 14:32 A second entry in what I hope to be a long series. @@ -115,7 +119,8 @@ Feature: Delete entries from journal Given we use the config "" When we run "jrnl --delete @tagone -not @ipsum" and enter Y - Then the error output should contain "1 entry deleted" + Then the error output should contain "1 entry found" + And the error output should contain "1 entry deleted" When we run "jrnl -99 --short" Then the output should be 2020-08-29 11:11 Entry the first. @@ -132,7 +137,8 @@ Feature: Delete entries from journal Given we use the config "" When we run "jrnl --delete -from 2020-09-01" and enter Y - Then the error output should contain "1 entry deleted" + Then the error output should contain "1 entry found" + And the error output should contain "1 entry deleted" When we run "jrnl -99 --short" Then the output should be 2020-08-29 11:11 Entry the first. @@ -150,7 +156,8 @@ Feature: Delete entries from journal When we run "jrnl --delete -to 2020-08-31" and enter Y Y - Then the error output should contain "2 entries deleted" + Then the error output should contain "2 entries found" + And the error output should contain "2 entries deleted" When we run "jrnl -99 --short" Then the output should be 2020-09-24 09:14 The third entry finally after weeks without writing. @@ -183,7 +190,8 @@ Feature: Delete entries from journal Given we use the config "" When we run "jrnl --delete -contains dignissim" and enter Y - Then the error output should contain "1 entry deleted" + Then the error output should contain "1 entry found" + And the error output should contain "1 entry deleted" When we run "jrnl -99 --short" Then the output should be 2020-08-31 14:32 A second entry in what I hope to be a long series.