Back to Sinon

spy.calledAfter

docs/concepts/spies/api/called-after.md

22.1.0481 B
Original Source

spy.calledAfter

Returns true, when the fake, spy or stub was called after another, otherwise returns false.

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

Resetting calledAfter to default

You can reset calledAfter in three different ways: