Waits the specified number of milliseconds before returning the mock Response.
The number of milliseconds to wait before resolving.
The mock Response to resolve with.
Creates a failure Response instance with the specified failure HTTP status code and optional data payload.
The HTTP status code to use.
Optional value to return in the Response data.
A Response object that indicates a failed data call.
Returns a successful Response (status 200) with the optional specified payload.
Optional value to return in the Response data.
A Response object that indicates a successful data call.
Importing
esm
cjs
amd
iife
Usage