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

NameTypeDetails
namestringname of the mock
delaynumbermilliseconds to delay

Example

delayResponse('my-mock', 3000);

Executing this will delay the response by 3000 ms for the mock matching the name my-mock.