dnet45/modules/uoa-repository-dashboard-gui/trunk/node_modules/@angular/core/testing/src/async.d.ts @ 49598
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; |