Skip to content

Commit ce40ac0

Browse files
committed
Added test
1 parent 658ba00 commit ce40ac0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/test-new.bats

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,11 @@ notes="./notes"
7373
assert_success
7474
assert_exists "$NOTES_DIRECTORY/notes with spaces/note.md"
7575
}
76+
77+
@test "Should create quicknote in a subfolder" {
78+
today=`date "+%Y-%m-%d"`
79+
run $notes new subfolder/
80+
81+
assert_success
82+
assert_exists "$NOTES_DIRECTORY/subfolder/quicknote-$today.md"
83+
}

0 commit comments

Comments
 (0)