Back to Sinon

Spy call

docs/concepts/spy-call/index.md

22.1.0504 B
Original Source

Spy call

A spy call is an object representation of an individual call to a spied function, which could be a fake, spy, stub or mock method.

fake.getCall(n)

Returns a spyCall for the nth call to the fake. Accessing individual calls helps with more detailed behavior verification when the fake is called more than once.