From a3e55c5e0d5bcf92e6fa8fc9c1c203b50029932d Mon Sep 17 00:00:00 2001 From: Carl Smedstad Date: Sat, 16 Nov 2024 20:42:04 +0100 Subject: [PATCH] Remove comments in Gherkin files causing test breakage These comments break the step matching. --- tests/bdd/features/actions.feature | 4 ++-- tests/bdd/features/config_file.feature | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/bdd/features/actions.feature b/tests/bdd/features/actions.feature index 24b19ad9..849b9389 100644 --- a/tests/bdd/features/actions.feature +++ b/tests/bdd/features/actions.feature @@ -111,8 +111,8 @@ Feature: Test combinations of edit, change-time, and delete """ Then the error output should contain "3 entries found" And the error output should contain "2 entries deleted" - And the error output should contain "1 entry modified" # only 1, because the other was deleted - And the error output should contain "1 entry added" # by edit + And the error output should contain "1 entry modified" + And the error output should contain "1 entry added" When we run "jrnl -99 --short" Then the output should be """ diff --git a/tests/bdd/features/config_file.feature b/tests/bdd/features/config_file.feature index 23a1e1e4..65254ecc 100644 --- a/tests/bdd/features/config_file.feature +++ b/tests/bdd/features/config_file.feature @@ -7,8 +7,8 @@ Feature: Multiple journals Given the config "basic_onefile.yaml" exists And we use the config "multiple.yaml" When we run "jrnl --cf basic_onefile.yaml -999" - Then the output should not contain "My first entry" # from multiple.yaml - And the output should contain "Lorem ipsum" # from basic_onefile.yaml + Then the output should not contain "My first entry" + And the output should contain "Lorem ipsum" Scenario: Write to default journal by default using an alternate config Given the config "multiple.yaml" exists