Skip to content

Commit

Permalink
chore: use clear_mocks()
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Dec 10, 2023
1 parent 0c66a58 commit cebb41c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/acceptance/mock_test.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#!/bin/bash

#
# Make sure that the runner::clean_mocks() is being called and removing the mocks and spies
# Make sure that the runner::clear_mocks() is being called and removing the mocks and spies
#
function test_runner_clean_mocks_1() {
function test_runner_clear_mocks_1() {
mock ls echo foo
assert_is_mock ls

spy ps
assert_is_mock ps
}

function test_runner_clean_mocks_2() {
function test_runner_clear_mocks_2() {
assert_is_not_mock ls
assert_is_not_mock ps
}

0 comments on commit cebb41c

Please sign in to comment.