File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## Unreleased
4
+
5
+ - Fix typo "to has been called"
6
+
3
7
## [ 0.20.0] ( https://github.com/TypedDevs/bashunit/compare/0.19.1...0.20.0 ) - 2025-06-01
4
8
5
9
- Fix asserts on test doubles in subshell
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ function assert_have_been_called() {
76
76
77
77
if [[ $times -eq 0 ]]; then
78
78
state::add_assertions_failed
79
- console_results::print_failed_test " ${label} " " ${command} " " to has been called" " once"
79
+ console_results::print_failed_test " ${label} " " ${command} " " to have been called" " once"
80
80
return
81
81
fi
82
82
@@ -134,7 +134,7 @@ function assert_have_been_called_times() {
134
134
if [[ $times -ne $expected ]]; then
135
135
state::add_assertions_failed
136
136
console_results::print_failed_test " ${label} " " ${command} " \
137
- " to has been called" " ${expected} times" \
137
+ " to have been called" " ${expected} times" \
138
138
" actual" " ${times} times"
139
139
return
140
140
fi
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function test_unsuccessful_spy_called() {
41
41
spy ps
42
42
43
43
assert_same\
44
- " $( console_results::print_failed_test " Unsuccessful spy called" " ps" " to has been called" " once" ) " \
44
+ " $( console_results::print_failed_test " Unsuccessful spy called" " ps" " to have been called" " once" ) " \
45
45
" $( assert_have_been_called ps) "
46
46
}
47
47
@@ -63,7 +63,7 @@ function test_unsuccessful_spy_called_times() {
63
63
64
64
assert_same\
65
65
" $( console_results::print_failed_test " Unsuccessful spy called times" " ps" \
66
- " to has been called" " 1 times" \
66
+ " to have been called" " 1 times" \
67
67
" actual" " 2 times" ) " \
68
68
" $( assert_have_been_called_times 1 ps) "
69
69
}
@@ -90,7 +90,7 @@ function test_unsuccessful_spy_with_source_function_have_been_called() {
90
90
" $( console_results::print_failed_test \
91
91
" Unsuccessful spy with source function have been called" \
92
92
" function_to_be_spied_on" \
93
- " to has been called" " 1 times" \
93
+ " to have been called" " 1 times" \
94
94
" actual" " 2 times" ) " \
95
95
" $( assert_have_been_called_times 1 function_to_be_spied_on) "
96
96
}
@@ -161,7 +161,7 @@ function test_spy_unsuccessful_not_called() {
161
161
162
162
assert_same \
163
163
" $( console_results::print_failed_test " Spy unsuccessful not called" " ps" \
164
- " to has been called" " 0 times" \
164
+ " to have been called" " 0 times" \
165
165
" actual" " 1 times" ) " \
166
166
" $( assert_not_called ps) "
167
167
}
You can’t perform that action at this time.
0 commit comments