From cefca57308c1758cfcf12cb080d6a7c388c2cd1b Mon Sep 17 00:00:00 2001 From: blag Date: Tue, 17 Nov 2020 17:27:23 -0800 Subject: [PATCH] Add tests for chatops.notify-errbot --- chatops/test_hubot.bats | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chatops/test_hubot.bats b/chatops/test_hubot.bats index c093cf1..d110a72 100644 --- a/chatops/test_hubot.bats +++ b/chatops/test_hubot.bats @@ -34,10 +34,12 @@ load '../test_helpers/bats-assert/load' assert_success assert_output --partial "chatops.notify" + assert_output --partial "chatops.notify-errbot" - run eval "echo '$RESULTS' | jq -r '.[] | select( (.ref == \"chatops.notify\") and .enabled == true) .ref'" + run eval "echo '$RESULTS' | jq -r '.[] | select( (.ref == \"chatops.notify\" or .ref == \"chatops.notify-errbot\") and .enabled == true) .ref'" assert_success assert_output --partial "chatops.notify" + assert_output --partial "chatops.notify-errbot" } @test "hubot help command works" {