UNPKG

angular2

Version:

Angular 2 - a web framework for modern web apps

17 lines (16 loc) 430 B
/** * Wraps a test function in an asynchronous test zone. The test will automatically * complete when all asynchronous calls within this zone are done. Can be used * to wrap an {@link inject} call. * * Example: * * ``` * it('...', async(inject([AClass], (object) => { * object.doSomething.then(() => { * expect(...); * }) * }); * ``` */ export declare function async(fn: Function): Function;