UNPKG

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