@@ -897,9 +897,9 @@ a(href="#top").to-top Back to top
897
897
The testing goal is to verify that such bindings work as expected.
898
898
The tests should set input values and listen for output events.
899
899
900
- The `DashboardHeroComponent` is tiny example of a component in this role.
901
- It displays an individual heroe provided by the `DashboardComponent`.
902
- Clicking that hero tells the the `DashboardComponent` that the user has selected the hero.
900
+ The `DashboardHeroComponent` is a tiny example of a component in this role.
901
+ It displays an individual hero provided by the `DashboardComponent`.
902
+ Clicking that hero tells the `DashboardComponent` that the user has selected the hero.
903
903
904
904
The `DashboardHeroComponent` is embedded in the `DashboardComponent` template like this:
905
905
+ makeExample('testing/ts/app/dashboard/dashboard.component.html' , 'dashboard-hero' , 'app/dashboard/dashboard.component.html (excerpt)' )( format ='.' )
@@ -1075,7 +1075,7 @@ a(href="#top").to-top Back to top
1075
1075
+ makeExample('testing/ts/app/dashboard/dashboard.component.spec.ts' , 'router-stub' , 'app/dashboard/dashboard.component.spec.ts (Router Stub)' )( format ='.' )
1076
1076
:marked
1077
1077
Now we setup the testing module with the test stubs for the `Router` and `HeroService` and
1078
- create a test instance of the `DashbaordComponent ` for subsequent testing.
1078
+ create a test instance of the `DashboardComponent ` for subsequent testing.
1079
1079
+ makeExample('testing/ts/app/dashboard/dashboard.component.spec.ts' , 'compile-and-create-body' , 'app/dashboard/dashboard.component.spec.ts (compile and create)' )( format ='.' )
1080
1080
:marked
1081
1081
The following test clicks the displayed hero and confirms (with the help of a spy) that `Router.navigateByUrl` is called with the expected url.
@@ -1266,7 +1266,7 @@ a(href="#top").to-top Back to top
1266
1266
1267
1267
Fortunately, the `TestBed.configureTestingModule` parameter parallels
1268
1268
the metadata passed to the `@NgModule` decorator
1269
- which means you can also specify `providers` and `imports.
1269
+ which means you can also specify `providers` and `imports` .
1270
1270
1271
1271
The `HeroDetailComponent` requires a lot of help despite its small size and simple construction.
1272
1272
In addition to the support it receives from the default testing module `CommonModule`, it needs:
0 commit comments