From f8ea88603c63665c075080f671982442fb46f02b Mon Sep 17 00:00:00 2001 From: apainintheneck Date: Sun, 18 Sep 2022 11:44:25 -0700 Subject: [PATCH] Update test regex to handle windows filepaths --- tests/bdd/features/format.feature | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/bdd/features/format.feature b/tests/bdd/features/format.feature index 6f2a3b9c..2cc7d9a1 100644 --- a/tests/bdd/features/format.feature +++ b/tests/bdd/features/format.feature @@ -600,16 +600,15 @@ Feature: Custom formats Scenario: Export journal list to multiple formats. Given we use the config "basic_onefile.yaml" - And the home directory is called "home" When we run "jrnl --list" Then the output should match - Journals defined in config \(/[\w/]+/basic_onefile\.yaml\) + Journals defined in config \(.+basic_onefile\.yaml\) \* default -> features/journals/basic_onefile\.journal When we run "jrnl --list --format json" Then the output should match - {"config_path": "/[\w/]+/basic_onefile\.yaml", "journals": {"default": "features/journals/basic_onefile\.journal"}} + {"config_path": ".+basic_onefile\.yaml", "journals": {"default": "features/journals/basic_onefile\.journal"}} When we run "jrnl --list --format yaml" Then the output should match - config_path: /[\w/]+/basic_onefile\.yaml + config_path: .+basic_onefile\.yaml journals: default: features/journals/basic_onefile\.journal