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 =