From 3ae0ac501a718ec9f23edab1bfdd81ca35e4f45c Mon Sep 17 00:00:00 2001 From: Jonathan van der Steege Date: Sun, 17 Jul 2022 15:10:59 +0200 Subject: [PATCH] Create test for linewrap auto and fancy format --- tests/bdd/features/config_file.feature | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/bdd/features/config_file.feature b/tests/bdd/features/config_file.feature index 8181da04..5cd3a6c5 100644 --- a/tests/bdd/features/config_file.feature +++ b/tests/bdd/features/config_file.feature @@ -111,6 +111,12 @@ Feature: Multiple journals Given we use the config "linewrap_auto.yaml" When we run "jrnl -1" Then the output should contain "Life is good." + + Scenario: Use a config file with linewrap set to 'auto' and use format 'fancy' + Given we use the config "linewrap_auto.yaml" + When we run "jrnl -1 --format fancy" + Then the output should contain "Life is good." + Scenario: Show a warning message when the config file contains duplicate keys at the same level Given the config "duplicate_keys.yaml" exists And we use the config "duplicate_keys.yaml"