Skip to content

Commit

Permalink
Fix up failing GitHub checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ceejatec committed Apr 27, 2024
1 parent 3be637b commit a91f2cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/console_results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function console_results::print_successful_test() {
local test_name=$1
shift

if [[ -z "$@" ]]; then
if [[ -z "$*" ]]; then
printf "%s✓ Passed%s: %s\n" "$_COLOR_PASSED" "$_COLOR_DEFAULT" "${test_name}"
else
printf "%s✓ Passed%s: %s (%s)\n" "$_COLOR_PASSED" "$_COLOR_DEFAULT" "${test_name}" "$*"
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/multi_invoker_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ function invoker_test_numbers() {
function invoker_test_whitespace() {
run_test "this arg" "has spaces"
run_test "this arg" "$(printf "has\na newline")"
}
}
9 changes: 5 additions & 4 deletions tests/unit/helpers_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,21 +113,22 @@ function fake_multi_invoker_function() {
function test_get_multi_invoker_function() {
# shellcheck disable=SC2317
# multi_invoker fake_multi_invoker_function
function fake_function_get_multi_invoker_function() {
function fake_use_multi_invoker() {
return 0
}

assert_equals "fake_multi_invoker_function" "$(helper::get_multi_invoker_function "fake_function_get_multi_invoker_function" "${BASH_SOURCE[0]}")"
assert_equals "fake_multi_invoker_function" \
"$(helper::get_multi_invoker_function "fake_use_multi_invoker" "${BASH_SOURCE[0]}")"
}

function test_get_multi_invoker_function_should_return_empty_when_not_exists_invoker_function() {
# shellcheck disable=SC2317
# multi_invoker not_existing_invoker_function
function fake_function_get_not_existing_multi_invoker() {
function fake_use_non_existing_multi_invoker() {
return 0
}

assert_empty "$(helper::get_multi_invoker_function "fake_function_get_not_existing_multi_invoker" "${BASH_SOURCE[0]}")"
assert_empty "$(helper::get_multi_invoker_function "fake_use_non_existing_multi_invoker" "${BASH_SOURCE[0]}")"
}

function fake_provider_data_string() {
Expand Down

0 comments on commit a91f2cc

Please sign in to comment.