Back to Sinon

spy.calledOnceWithExactly

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

22.1.0575 B
Original Source

spy.calledOnceWithExactly

Returns true, when the fake, spy or stub was called exactly once in total and that one call was using the exact provided arguments and no others.

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

Resetting calledOnceWithExactly to default

You can reset calledOnceWithExactly in three different ways: