docs(testing): change createInstance to createComponent (#2475)

This commit is contained in:
Jesús Rodríguez 2016-09-25 23:12:04 +01:00 committed by Ward Bell
parent 3ee19780b5
commit 738b714bd3
1 changed files with 1 additions and 1 deletions

View File

@ -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.