Add BDD test

This commit is contained in:
Jonathan van der Steege 2022-06-21 20:43:59 +02:00
parent 41ac4e257b
commit c29518b37a
2 changed files with 22 additions and 0 deletions

View file

@ -106,3 +106,8 @@ Feature: Multiple journals
And we use the config "basic_onefile.yaml" And we use the config "basic_onefile.yaml"
When we run "jrnl --cf empty_file.yaml" When we run "jrnl --cf empty_file.yaml"
Then the error output should contain "Unable to parse config file" Then the error output should contain "Unable to parse config file"
Scenario: Use a config file with linewrap set to 'auto'
Given we use the config "linewrap_auto.yaml"
When we run "jrnl -1"
Then the output should contain "Life is good."

View file

@ -0,0 +1,17 @@
default_hour: 9
default_minute: 0
editor: ""
encrypt: false
highlight: true
journals:
default: features/journals/simple.journal
linewrap: auto
tagsymbols: "@"
template: false
timeformat: "%Y-%m-%d %H:%M"
indent_character: "|"
colors:
date: none
title: none
body: none
tags: none