Skip to content

Commit

Permalink
only clear test tokens (fixes #2110)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLKwong committed Mar 20, 2021
1 parent 6e8ba91 commit 1516a22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/message.bats
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ load test-helper
}

@test "$clinom message slack apitoken (create invalid token)" {
bash -c [[ run "${clicmd}" config delete xoxp-fake-token && "${clicmd}" message slack apitoken fake-token ]]
run "${clicmd}" config delete fake-token
run "${clicmd}" message slack apitoken fake-token
assert_output --partial 'invalid token'
"${clicmd}" config delete xoxp-fake-token
"${clicmd}" config delete fake-token
}

# Needs to 'store' previous tokens and re-add them
Expand Down

0 comments on commit 1516a22

Please sign in to comment.