Skip to content

Commit a65d7f0

Browse files
committed
Add test for version
1 parent f54fca0 commit a65d7f0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test/test-version.bats

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!./test/libs/bats/bin/bats
2+
3+
load 'helpers'
4+
5+
setup() {
6+
setupNotesEnv
7+
}
8+
9+
teardown() {
10+
teardownNotesEnv
11+
}
12+
13+
notes="./notes"
14+
15+
@test "Should print version successfully if requested" {
16+
run $notes --version
17+
18+
assert_success
19+
assert_line --regexp '^.+ [0-9]\.[0-9]\.[0-9]$'
20+
}

0 commit comments

Comments
 (0)