From cf057b6631874a7168b89e410458d9fedc55c6f6 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Sat, 8 Feb 2025 10:25:41 -0800 Subject: [PATCH] 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. --- lib/jasmine-core/jasmine.js | 4 +--- src/core/matchers/toHaveNoOtherSpyInteractions.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index 57c6945f..eda26ef5 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -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 = diff --git a/src/core/matchers/toHaveNoOtherSpyInteractions.js b/src/core/matchers/toHaveNoOtherSpyInteractions.js index 13d9827e..a1bc3c29 100644 --- a/src/core/matchers/toHaveNoOtherSpyInteractions.js +++ b/src/core/matchers/toHaveNoOtherSpyInteractions.js @@ -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 =