From 966fb90b0db18a0622efe48e8bb45dca6164c76e Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Wed, 18 Nov 2020 16:52:09 -0800 Subject: [PATCH] three initial tests --- test/test.bats | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/test.bats b/test/test.bats index 4bfd008..26f6bc5 100644 --- a/test/test.bats +++ b/test/test.bats @@ -3,4 +3,18 @@ load test_helper @test "Outputs help if run without arguments" { run ./sig [ "$status" -eq 0 ] + 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" }