docs: clarify where the `async` utility function is coming from (#34876)

inside the `beforeEach` for out testing guide.

Fixes #34833

PR Close #34876
This commit is contained in:
Sonu Kapoor 2020-01-20 22:24:28 -05:00 committed by Matias Niemelä
parent 2954a14c3d
commit e7cf37d99f
1 changed files with 10 additions and 0 deletions

View File

@ -618,6 +618,16 @@ It also generates an initial test file for the component, `banner-external.compo
region="v1"
header="app/banner/banner-external.component.spec.ts (initial)"></code-example>
<div class="alert is-helpful">
Because `compileComponents` is asynchronous, it uses
the [`async`](api/core/testing/async) utility
function imported from `@angular/core/testing`.
Please refer to the [async](#async) section for more details.
</div>
#### Reduce the setup
Only the last three lines of this file actually test the component