docs(testing): change createInstance to createComponent (#2475)
This commit is contained in:
parent
3ee19780b5
commit
738b714bd3
|
@ -880,7 +880,7 @@ a(href="#top").to-top Back to top
|
||||||
:marked
|
:marked
|
||||||
Do not configure the `TestBed` after calling `compileComponents`.
|
Do not configure the `TestBed` after calling `compileComponents`.
|
||||||
Make `compileComponents` the last step
|
Make `compileComponents` the last step
|
||||||
before calling `TestBed.createInstance` to instantiate the _component-under-test_.
|
before calling `TestBed.createComponent` to instantiate the _component-under-test_.
|
||||||
:marked
|
:marked
|
||||||
The `DashboardHeroComponent` spec follows the asynchonous `beforeEach` with a
|
The `DashboardHeroComponent` spec follows the asynchonous `beforeEach` with a
|
||||||
_synchronous_ `beforeEach` that completes the setup steps and runs tests ... as described in the next section.
|
_synchronous_ `beforeEach` that completes the setup steps and runs tests ... as described in the next section.
|
||||||
|
|
Loading…
Reference in New Issue