Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
franklychilled committed Feb 21, 2024
1 parent 9404b21 commit 8746e38
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/command.bats
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ load "${BATS_PLUGIN_PATH}/load.bash"
stub buildkite-agent \
"artifact download \* \* : echo Downloaded artifact \$3 to \$4"
stub make \
"build : echo Building App using make" \
"run : echo Run App using make"

run "$PWD/hooks/command"
Expand All @@ -27,8 +26,6 @@ load "${BATS_PLUGIN_PATH}/load.bash"
assert_output --partial "Missing \$SLACK_TOKEN_ENV_NAME environment variable... looking for alternative"
assert_output --partial "--- :junit: Download the junits XML"
assert_output --partial "Downloaded artifact to /plugin/junits-slack-notification-plugin-artifacts-tmp"
assert_output --partial "--- Compile Typescript"
assert_output --partial "Building App using make"
assert_output --partial "--- Send message to #junit_bot_testing"
assert_output --partial "Run App using make"

Expand All @@ -47,7 +44,6 @@ load "${BATS_PLUGIN_PATH}/load.bash"
stub buildkite-agent \
"artifact download \* \* : echo Downloaded artifact \$3 to \$4"
stub make \
"build : echo Building App using make" \
"run : echo Run App using make"


Expand All @@ -57,8 +53,6 @@ load "${BATS_PLUGIN_PATH}/load.bash"

assert_output --partial "--- :junit: Download the junits XML"
assert_output --partial "Downloaded artifact to /plugin/junits-slack-notification-plugin-artifacts-tmp"
assert_output --partial "--- Compile Typescript"
assert_output --partial "Building App using make"
assert_output --partial "--- Send message to #junit_bot_testing"
assert_output --partial "Run App using make"

Expand All @@ -78,7 +72,6 @@ load "${BATS_PLUGIN_PATH}/load.bash"
stub buildkite-agent \
"artifact download \* \* : echo Downloaded artifact \$3 to \$4"
stub make \
"build : echo Building App using make" \
"run : echo Run App using make"

run "$PWD/hooks/command"
Expand All @@ -87,8 +80,6 @@ load "${BATS_PLUGIN_PATH}/load.bash"

assert_output --partial "--- :junit: Download the junits XML"
assert_output --partial "Downloaded artifact to /plugin/junits-slack-notification-plugin-artifacts-tmp"
assert_output --partial "--- Compile Typescript"
assert_output --partial "Building App using make"
assert_output --partial "--- Send message to #junit_bot_testing"
assert_output --partial "Run App using make"

Expand Down

0 comments on commit 8746e38

Please sign in to comment.