Skip to content

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.