Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 4f9f51c

Browse files
Belax8Foxandxss
authored andcommitted
Fixed minor typos in testing (#2515)
Fixed minor typos in testing
1 parent 66c567b commit 4f9f51c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

public/docs/ts/latest/guide/testing.jade

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -897,9 +897,9 @@ a(href="#top").to-top Back to top
897897
The testing goal is to verify that such bindings work as expected.
898898
The tests should set input values and listen for output events.
899899

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

904904
The `DashboardHeroComponent` is embedded in the `DashboardComponent` template like this:
905905
+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
10751075
+makeExample('testing/ts/app/dashboard/dashboard.component.spec.ts', 'router-stub', 'app/dashboard/dashboard.component.spec.ts (Router Stub)')(format='.')
10761076
:marked
10771077
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.
10791079
+makeExample('testing/ts/app/dashboard/dashboard.component.spec.ts', 'compile-and-create-body', 'app/dashboard/dashboard.component.spec.ts (compile and create)')(format='.')
10801080
:marked
10811081
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
12661266

12671267
Fortunately, the `TestBed.configureTestingModule` parameter parallels
12681268
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`.
12701270

12711271
The `HeroDetailComponent` requires a lot of help despite its small size and simple construction.
12721272
In addition to the support it receives from the default testing module `CommonModule`, it needs:

0 commit comments

Comments
 (0)