mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-06 16:26:13 +02:00
Add tests for colors in configs
- Identifying invalid color configs - Upgrading config from no colors -> colors
This commit is contained in:
parent
8053d250f4
commit
eb1ed3c0cd
5 changed files with 54 additions and 7 deletions
|
@ -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.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue