This commit is contained in:
Hongbo Miao 2016-12-06 15:58:54 -05:00 committed by 雪狼
parent b841c0f20b
commit 361361f195
1 changed files with 1 additions and 1 deletions

View File

@ -1543,7 +1543,7 @@ a(href="#top").to-top 回到顶部
that hides the mechanics of asynchronous execution, just as it does when passed to an [_it_ test](#async). that hides the mechanics of asynchronous execution, just as it does when passed to an [_it_ test](#async).
注意`beforeEach`里面对`async`的调用,因为异步方法`TestBed.compileComponents`而变得必要。 注意`beforeEach`里面对`async`的调用,因为异步方法`TestBed.compileComponents`而变得必要。
`async`函数将测试代码安排到特殊的**异步测试区域**来运行,该区域隐藏了异步执行的细节,就像它被传递给[_it_ 测试)(#async)一样。 `async`函数将测试代码安排到特殊的**异步测试区域**来运行,该区域隐藏了异步执行的细节,就像它被传递给[_it_ 测试](#async)一样。
#compile-components #compile-components
:marked :marked