Back to Sinon

stub.yieldsOn

docs/concepts/stubs/api/yields-on.md

22.1.0726 B
Original Source

stub.yieldsOn()

Causes the stub to call the first callback it receives with any provided arguments, with an additional parameter to pass the this context.

<<< ../../../.vitepress/tests/docs/stubs/api/yields-on.test.js

See also

More information