Back to Sinon

spyCall.calledWithMatch

docs/concepts/spy-call/api/called-with-match.md

22.1.0314 B
Original Source

spyCall.calledWithMatch(arg1, arg2, ...);

Returns true, when the spy call received matching arguments (and possibly others).

This behaves the same as spyCall.calledWith(sinon.match(arg1), sinon.match(arg2), ...).

<<< ../../../.vitepress/tests/docs/spy-call/api/called-with-match.test.js