Delay response
Makes sure that @ng-apimock/core returns the scenario response with the given delay for the request matching the mock
Usage
delayResponse(name, delay);
Parameters
| Name | Type | Details |
|---|---|---|
| name | string | name of the mock |
| delay | number | milliseconds to delay |
Example
delayResponse('my-mock', 3000);
Executing this will delay the response by 3000 ms for the mock matching the name my-mock.