Use custom object formatters in spy strategy mismatch errors

This commit is contained in:
Steve Gravrock
2025-06-05 05:44:59 -07:00
parent 63ed2b3948
commit c1cd5c6291
3 changed files with 31 additions and 2 deletions

View File

@@ -161,7 +161,7 @@ getJasmineRequireObj().Spy = function(j$) {
"Spy '" +
strategyArgs.name +
"' received a call with arguments " +
j$.basicPrettyPrinter_(Array.prototype.slice.call(args)) +
matchersUtil.pp(Array.prototype.slice.call(args)) +
' but all configured strategies specify other arguments.'
);
} else {