mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-03 23:16:14 +02:00
Add tests for md and text
This commit is contained in:
parent
6c6ae30c13
commit
b61f0daa74
4 changed files with 29 additions and 0 deletions
|
@ -579,3 +579,21 @@ Feature: Custom formats
|
|||
| basic_encrypted.yaml |
|
||||
| basic_folder.yaml |
|
||||
| basic_dayone.yaml |
|
||||
|
||||
Scenario: Export entries in markdown format with a title longer than max file name length.
|
||||
Given we use the config "format_md.yaml"
|
||||
And we create a cache directory
|
||||
When we run "jrnl longtitle --format markdown --file {cache_dir}"
|
||||
Then the cache directory should contain the files
|
||||
2022-07-01_lorem-ipsum-dolor-sit-amet-consectetur-adipiscing-elit-sed-do-eiusmod-tempor-incididunt-ut-labore-et-dolore-magna-aliqua-laoreet-id-donec-ultrices-ti.md
|
||||
2022-07-02_magna-fermentum-iaculis-eu-non-diam-phasellus-non-pulvinar-neque-laoreet-suspendisse-interdum-consectetur-libero-id-scelerisque-felis-i.md
|
||||
And we should get no error
|
||||
|
||||
Scenario: Export entries in text format with a title longer than max file name length.
|
||||
Given we use the config "format_text.yaml"
|
||||
And we create a cache directory
|
||||
When we run "jrnl longtitle --format text --file {cache_dir}"
|
||||
Then the cache directory should contain the files
|
||||
2022-07-01_lorem-ipsum-dolor-sit-amet-consectetur-adipiscing-elit-sed-do-eiusmod-tempor-incididunt-ut-labore-et-dolore-magna-aliqua-laoreet-id-donec-ultrices-ti.txt
|
||||
2022-07-02_magna-fermentum-iaculis-eu-non-diam-phasellus-non-pulvinar-neque-laoreet-suspendisse-interdum-consectetur-libero-id-scelerisque-felis-i.txt
|
||||
And we should get no error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue