Back to Sinon

spy.alwaysCalledWithMatch

docs/concepts/spies/api/always-called-with-match.md

22.1.0628 B
Original Source

spy.alwaysCalledWithMatch

Returns true, when the fake, spy or stub was always called with matching arguments (and possibly others).

This behaves the same as spy.alwaysCalledWith(sinon.match(arg1), sinon.match(arg2), ...).

<<< ../../../.vitepress/tests/docs/spies/api/always-called-with-match.test.js

Resetting alwaysCalledWithMatch to default

You can reset alwaysCalledWithMatch in three different ways: