flush

Simulates the asynchronous passage of time for the timers in the fakeAsync zone by draining the macro-task queue until it is empty. The returned value is the milliseconds of time that would have been elapsed.

Resolve the request by returning a body plus additional HTTP information (such as response headers) if provided. If the request specifies an expected body type, the body is converted into the requested type. Otherwise, the body is converted to JSON by default.

Last updated