Add tests for colors in configs

- Identifying invalid color configs
- Upgrading config from no colors -> colors
This commit is contained in:
Aaron Lichtman 2019-11-06 02:49:47 +01:00
parent 8053d250f4
commit eb1ed3c0cd
No known key found for this signature in database
GPG key ID: 22368077DE9F9903
5 changed files with 54 additions and 7 deletions

View file

@ -58,3 +58,12 @@ Feature: Basic reading and writing to a journal
When we run "jrnl -on 2013-06-10 -s"
Then the output should be "2013-06-10 15:40 Life is good."
Scenario: Invalid color configuration
Given we use the config "invalid_color.yaml"
When we run "jrnl -on 2013-06-10 -s"
Then the output should be
"""
[ERROR: date set to invalid color: not-a-color]
[ERROR: title set to invalid color: also-not-a-color]
2013-06-10 15:40 Life is good.
"""