git-sig/test/test.bats

21 lines
422 B
Plaintext
Raw Normal View History

2020-11-18 23:23:15 +00:00
load test_helper
@test "Outputs help if run without arguments" {
run ./sig
[ "$status" -eq 0 ]
2020-11-19 00:52:09 +00:00
echo "${output}" | grep "simple multisig trust toolchain"
}
@test "Outputs help if run with help" {
run ./sig help
[ "$status" -eq 0 ]
echo "${output}" | grep "simple multisig trust toolchain"
}
@test "Outputs version if run with version" {
run ./sig version
[ "$status" -eq 0 ]
echo "${output}" | grep "v0.0.1"
2020-11-18 23:23:15 +00:00
}