Skip to content

Commit

Permalink
fix: test_globals_is_command_available
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Oct 6, 2024
1 parent aa1d0dd commit 736e39e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/unit/globals_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ function test_globals_current_timestamp() {
}

function test_globals_is_command_available() {
assert_successful_code "$(is_command_available ls)"
function existing_fn(){
# shellcheck disable=SC2317
return 0
}
assert_successful_code "$(is_command_available existing_fn)"
}

function test_globals_is_command_not_available() {
Expand Down

0 comments on commit 736e39e

Please sign in to comment.