docs(API): 翻译完了 test/async

This commit is contained in:
Zhicheng Wang 2018-09-05 10:10:50 +08:00
parent 9e40bf8e63
commit d589eef668
2 changed files with 7 additions and 3 deletions

View File

@ -96,10 +96,9 @@
[x] | forms/NgSelectOption | 0.17
[x] | common/PercentPipe | 0.17
[x] | forms/ValidatorFn | 0.17
[ ] | http/RequestOptionsArgs | 0.17
[ ] | animations/animation | 0.17
[x] | common/NgSwitchCase | 0.16
[ ] | core/testing/async | 0.16
[x] | core/testing/async | 0.16
## 翻译方式

View File

@ -13,8 +13,13 @@ import {asyncFallback} from './async_fallback';
* complete when all asynchronous calls within this zone are done. Can be used
* to wrap an {@link inject} call.
*
* Zone
* {@link inject}
*
* Example:
*
*
*
* ```
* it('...', async(inject([AClass], (object) => {
* object.doSomething.then(() => {
@ -42,4 +47,4 @@ export function async(fn: Function): (done: any) => any {
// TODO @JiaLiPassion, remove this after all library updated to
// newest version of zone.js(0.8.25)
return asyncFallback(fn);
}
}