diff --git a/tests/message.bats b/tests/message.bats index 507a0e0bf..333250b32 100644 --- a/tests/message.bats +++ b/tests/message.bats @@ -6,6 +6,11 @@ load test-helper assert_success } +@test "$clinom message slack apitoken (TEST)" { + run "${clicmd}" message slack apitoken + assert_output --partial 'Your API access token is' +} + @test "$clinom message slack apitoken (create invalid token)" { run "${clicmd}" config delete slack_apitoken run "${clicmd}" message slack apitoken fake-token @@ -22,17 +27,14 @@ load test-helper assert_output --partial 'Your slack apitoken' } -@test "$clinom message slack apitoken (TEST)" { - run "${clicmd}" message slack apitoken - assert_output --partial 'Your slack apitoken (xoxp-fake-token)' -} - @test "$clinom message slack apitoken (overrite token)" { + run "${clicmd}" message slack apitoken xoxp-fake-token run "${clicmd}" message slack apitoken xoxp-another-fake-token assert_output --partial 'Your slack apitoken (xoxp-another-fake-token)' } @test "$clinom message slack apitoken (with token)" { + run "${clicmd}" message slack apitoken xoxp-fake-token run "${clicmd}" message slack apitoken assert_output --partial 'Your API access token is' }