Fixed parse error from jsdoc

"arguments" isn't a legal argument name in strict mode JS. The JS
runtimes that Jasmine runs in allow it, but jsdoc doesn't.
This commit is contained in:
Steve Gravrock
2025-02-08 10:25:41 -08:00
parent 2a7a157713
commit cf057b6631
2 changed files with 2 additions and 6 deletions

View File

@@ -6777,9 +6777,7 @@ getJasmineRequireObj().toHaveNoOtherSpyInteractions = function(j$) {
"Expected a spy object to have other spy interactions but it didn't.";
} else {
const ppUnexpectedCalls = unexpectedCalls
.map(
([spyName, arguments]) => ` ${spyName} called with ${arguments}`
)
.map(([spyName, args]) => ` ${spyName} called with ${args}`)
.join(',\n');
result.message =

View File

@@ -67,9 +67,7 @@ getJasmineRequireObj().toHaveNoOtherSpyInteractions = function(j$) {
"Expected a spy object to have other spy interactions but it didn't.";
} else {
const ppUnexpectedCalls = unexpectedCalls
.map(
([spyName, arguments]) => ` ${spyName} called with ${arguments}`
)
.map(([spyName, args]) => ` ${spyName} called with ${args}`)
.join(',\n');
result.message =