Skip to content

Commit

Permalink
Merge pull request #254 from TypedDevs/missing-aserts-in-non-stable-i…
Browse files Browse the repository at this point in the history
…nstalation-test

Add missing assertions in non-stable version test
  • Loading branch information
Chemaclass authored May 25, 2024
2 parents 9d0d881 + 5708046 commit d180965
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [Unreleased](https://github.com/TypedDevs/bashunit/compare/0.11.0...main)

- Add missing assertion in non-stable versions
- Fix test with `rm` command in macOS
- Add multi-invokers; consolidate parameterized-testing documentation
- Add `fail()` function
Expand Down
4 changes: 3 additions & 1 deletion tests/acceptance/install_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,7 @@ function test_install_downloads_the_non_stable_beta_version() {
"$(printf "\e[1m\e[32mbashunit\e[0m - (non-stable) beta [2023-11-13]")"\
"$("$installed_bashunit" --env "$TEST_ENV_FILE" --version)"
assert_directory_not_exists "./deps/temp_bashunit"
todo "assert that bashunit is the only file that exists in the deps folder"
file_count_of_deps_directory=$(find ./deps -mindepth 1 -maxdepth 1 -print | wc -l | tr -d ' ')
assert_equals "$file_count_of_deps_directory" "1"
assert_equals "$(find ./deps -name 'bashunit')" "./deps/bashunit"
}

0 comments on commit d180965

Please sign in to comment.