Assertion: stub | /r/CapableOf | return promise
Facets:
Source sentences:
text: Causes the stub to return a Promise which resolves to the provided value.
text: Causes the stub to return a Promise which resolves to the argument at the provided index.
text: stub.resolvesArg(0); causes the stub to return a Promise which resolves to the first argument.
text: Causes the stub to return a Promise which rejects with an exception ( Error ).
text: Causes the stub to return a Promise which rejects with an exception of the provided type.
text: Causes the stub to return a Promise which rejects with the provided exception object.
text: Causes the stub to return promises using a specific Promise library instead of the global one when using stub.rejects or stub.resolves .