Skip to content

Commit

Permalink
refactor: rename clean_mocks to clear_mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Dec 10, 2023
1 parent 4907d20 commit bcbf6f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function runner::run_test() {
"$function_name" "$data" 2>&1 1>&3
runner::run_tear_down
runner::clean_mocks
runner::clear_mocks
state::export_assertions_count
)

Expand Down Expand Up @@ -202,7 +202,7 @@ function runner::run_tear_down() {
helper::execute_function_if_exists 'tear_down'
}

function runner::clean_mocks() {
function runner::clear_mocks() {
for i in "${!MOCKED_FUNCTIONS[@]}"; do
unmock "${MOCKED_FUNCTIONS[$i]}"
done
Expand Down

0 comments on commit bcbf6f9

Please sign in to comment.