docs: correct a misleading sentence (#36155) (#36158)

Fixes #36155

PR Close #36158
This commit is contained in:
Faouzi Medebbeb 2020-03-20 12:54:15 +01:00 committed by Alex Rickabaugh
parent 8e0dec538e
commit bfa7b1a494
1 changed files with 5 additions and 4 deletions

View File

@ -507,10 +507,11 @@ Consider this `LightswitchComponent` which toggles a light on and off
You might decide only to test that the `clicked()` method
toggles the light's _on/off_ state and sets the message appropriately.
This component class has no dependencies.
To test a service with no dependencies, you create it with `new`, poke at its API,
and assert expectations on its public state.
Do the same with the component class.
This component class has no dependencies. To test these types of classes, follow the same steps as you would for a service that has no dependencies:
1. Create a component using the new keyword.
2. Poke at its API.
3. Assert expectations on its public state.
<code-example
path="testing/src/app/demo/demo.spec.ts"