Create a gist now

Instantly share code, notes, and snippets.

A simple real bats test, using `run` to assert on status and output
@test "Should show matching notes only if a pattern is provided to find" {
touch $NOTES_DIRECTORY/match-note1.md
touch $NOTES_DIRECTORY/hide-note2.md
run $notes find "match"
assert_success
assert_line "match-note1.md"
refute_line "hide-note2.md"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment