1 | /// <reference types="core-js" />
|
2 | import { flushMicrotasks } from '@angular/core/testing';
|
3 | export { flushMicrotasks };
|
4 | /**
|
5 | * Wraps angular fakeAsync with the ability to track pending requests
|
6 | *
|
7 | * When a request is initiated using mockAsync, the request is pushed to the requestQueue
|
8 | * If there are any pending requests at the end of the function, an exception will be thrown.
|
9 | *
|
10 | * Also overrides 'now' on the default rxjs scheduler to return a value based on how much time has elapsed via 'tick'
|
11 | *
|
12 | * @param fn
|
13 | * @returns {Function} The function wrapped to be executed in the fakeAsync zone
|
14 | */
|
15 | export declare function rlFakeAsync(fn: Function): {
|
16 | (done?: {
|
17 | (): void;
|
18 | }): void;
|
19 | };
|
20 | export declare function rlQueueRequest(request: any): void;
|
21 | export declare function rlTick(milliseconds?: number): void;
|