Skip to content

Commit

Permalink
chore: Improve version check test
Browse files Browse the repository at this point in the history
Signed-off-by: Drew Robinson <[email protected]>
  • Loading branch information
ocean committed Apr 19, 2023
1 parent 4b72fdc commit b32f1eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/flags.bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@test "get the version of ahoy with --version" {
run ./ahoy -f testdata/simple.ahoy.yml --version
[ $status -eq 0 ]
[ $(expr "$output" : "[0-9.]\.[0-9.]\.[0-9.]") -ne 0 ]
[ $(expr "$output" : "^v?[0-9.]\.[0-9.]\.[0-9.](\S*)?") -eq 0 ]
}

@test "get help instead of running a command with --help" {
Expand Down

0 comments on commit b32f1eb

Please sign in to comment.