Mixin: Stub

Stub

A Stub object. Returned when using an *onCall* method, instead of a stub. In this context, use end() to return to a Debaser instance.

The create(), resetBehavior() and isPresent() functions of the Sinon.JS "stub" API are not used. If someone needs these, please create an issue and provide a use case.

Methods

end() → {base.func|base.module.withFunc}

Gives you a Debaser instance back if you have been setting things up via *onCall* methods.

Returns:
Type
base.func | base.module.withFunc