Skip to content

Spy API

Properties and methods on spied functions

Spy objects are objects returned from sinon.spy(). When spying on existing methods with sinon.spy(object, method), the following properties and methods are also available on object.method.

Example

Methods

Properties