From 6b1bc963e0b02304f3aef2e6732b8e7427ba11d8 Mon Sep 17 00:00:00 2001 From: Eshan Ramesh Date: Sun, 24 May 2020 09:53:11 -0400 Subject: [PATCH] added test --- features/core.feature | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/features/core.feature b/features/core.feature index df214494..707f2175 100644 --- a/features/core.feature +++ b/features/core.feature @@ -26,6 +26,12 @@ Feature: Basic reading and writing to a journal | There is a blank line above this. """ + Scenario: Multiline entry with punctuation + Given we use the config "basic.yaml" + When we run "jrnl This is. the title\\n This is the second line" + and we run "jrnl -n 1" + Then the output should contain "This is. the title" + Scenario: Writing an entry from command line Given we use the config "basic.yaml" When we run "jrnl 23 july 2013: A cold and stormy day. I ate crisps on the sofa." @@ -39,6 +45,8 @@ Feature: Basic reading and writing to a journal When we open the editor and enter nothing Then we should see the message "[Nothing saved to file]" + + Scenario: Writing an empty entry from the command line Given we use the config "basic.yaml" When we run "jrnl" and enter nothing