diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 7d0a0bd..faccfaf 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -7,7 +7,7 @@ files: ^tests/(.*/)?test_.*\.sh$ types: [shell] pass_filenames: true -# Duplicated with different id name for convienience +# Duplicated with different id name for convenience - id: bash_unit name: Run tests with `bash_unit` description: This hook runs tests using `bash_unit` diff --git a/bash_unit b/bash_unit index 87e177d..49cf8d3 100755 --- a/bash_unit +++ b/bash_unit @@ -18,6 +18,7 @@ # shellcheck disable=2317 # Ignore unreachable - most function are not called. # shellcheck disable=2155 # Ignore Declare and assign separately +# spellchecker: ignore NOCOLOR SHUF VERSION=v2.3.3 @@ -407,7 +408,7 @@ text_format() { notify_stack() { color "$YELLOW" } - notify_suites_succeded() { + notify_suites_succeeded() { echo -n "Overall result: SUCCESS" | pretty_success echo } @@ -460,7 +461,7 @@ tap_format() { notify_stack() { "$SED" 's:^:# :' | color "$YELLOW" } - notify_suites_succeded() { + notify_suites_succeeded() { local message="$1" echo "1..$message" } @@ -595,7 +596,7 @@ if ((failure)) then notify_suites_failed "$(cat "${TEST_COUNT_FILE}")" else - notify_suites_succeded "$(cat "${TEST_COUNT_FILE}")" + notify_suites_succeeded "$(cat "${TEST_COUNT_FILE}")" fi exit $failure diff --git a/tests/test_core.sh b/tests/test_core.sh index cc3bd27..dc9d021 100644 --- a/tests/test_core.sh +++ b/tests/test_core.sh @@ -338,6 +338,6 @@ mute() { notify_stack () { $CAT >/dev/null ; } notify_stdout () { : ; } notify_stderr () { : ; } - notify_suites_succeded () { : ; } + notify_suites_succeeded () { : ; } notify_suites_failed () { : ; } } diff --git a/tests/test_tap_format b/tests/test_tap_format index 7d9c11b..c7681ea 100644 --- a/tests/test_tap_format +++ b/tests/test_tap_format @@ -8,7 +8,7 @@ test_bash_unit_rejects_invalid_format() { assert_fails "$BASH_UNIT -f invalid_format" } -test_tap_format_for_one_succesfull_test() { +test_tap_format_for_one_successful_test() { assert_equals \ "\ # Running tests in code