toHaveNoOtherSpyInteractions message tweaks

This commit is contained in:
Steve Gravrock
2025-01-20 11:31:47 -08:00
parent 7463fe511b
commit 2a7a157713
3 changed files with 14 additions and 15 deletions

View File

@@ -64,7 +64,7 @@ getJasmineRequireObj().toHaveNoOtherSpyInteractions = function(j$) {
if (result.pass) {
result.message =
"Expected to have other spy interactions but it didn't.";
"Expected a spy object to have other spy interactions but it didn't.";
} else {
const ppUnexpectedCalls = unexpectedCalls
.map(
@@ -73,9 +73,9 @@ getJasmineRequireObj().toHaveNoOtherSpyInteractions = function(j$) {
.join(',\n');
result.message =
'Expected to have no other spy interactions, but it had the following calls:\n' +
'Expected a spy object to have no other spy interactions, but it had the following calls:\n' +
ppUnexpectedCalls +
'.\n\n';
'.';
}
return result;