Skip to content

Commit

Permalink
t3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed May 3, 2024
1 parent dd8e17d commit 82311d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/bats/shell-command.bats
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ export SCRIPT_FILE="shell-command.sh"
@test "Data can be fetched from the API with CLI arguments" {
export SHOULD_PROCEED=y

run ./"${SCRIPT_FILE}" programming
tui_run programming
assert_success
}

@test "Data can be fetched from the API with CLI arguments, aborting" {
export SHOULD_PROCEED=n

run ./"${SCRIPT_FILE}" programming
tui_run programming
assert_success
assert_output_contains "Aborting."
}
Expand All @@ -43,7 +43,7 @@ export SCRIPT_FILE="shell-command.sh"
mocks="$(run_steps "setup")"

export SHOULD_PROCEED=y
run ./"${SCRIPT_FILE}" mocked_topic
tui_run mocked_topic
assert_success
assert_output_contains "mocked_setup"
assert_output_contains "mocked_punchline"
Expand Down

0 comments on commit 82311d1

Please sign in to comment.