utils/spy
module
Functions
spy() → () => voidmodule:utils/spy~spyCreates a spy function (ala Sinon.js) that can be used to inspect call to it.
The following are the present features:
- spy.called: property set to
trueif the function has been called at least once.
Returns
() => voidThe spy function.
- spy.called: property set to