Back to Sinon

spy.calledWithExactly

docs/concepts/spies/api/called-with-exactly.md

22.1.0521 B
Original Source

spy.calledWithExactly

Returns true, when the fake, spy or stub was called at least once with the provided arguments and no others.

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

Resetting calledWithExactly to default

You can reset calledWithExactly in three different ways: