From 57080468251245116757b3ffe90debd63236f06c Mon Sep 17 00:00:00 2001 From: Fabrizio Fasanando Date: Sat, 25 May 2024 02:36:25 +0200 Subject: [PATCH] Add missing assertions --- CHANGELOG.md | 1 + tests/acceptance/install_test.sh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 453bf39d..69c08c5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/tests/acceptance/install_test.sh b/tests/acceptance/install_test.sh index 8062a865..6edde55a 100644 --- a/tests/acceptance/install_test.sh +++ b/tests/acceptance/install_test.sh @@ -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" }