Project

General

Profile

1
/**
2
 * Wraps a test function in an asynchronous test zone. The test will automatically
3
 * complete when all asynchronous calls within this zone are done. Can be used
4
 * to wrap an {@link inject} call.
5
 *
6
 * Example:
7
 *
8
 * ```
9
 * it('...', async(inject([AClass], (object) => {
10
 *   object.doSomething.then(() => {
11
 *     expect(...);
12
 *   })
13
 * });
14
 * ```
15
 *
16
 * @stable
17
 */
18
export declare function async(fn: Function): (done: any) => any;
(1-1/20)