From bfa7b1a49453d0fbcaff33976951958069bc5b3d Mon Sep 17 00:00:00 2001 From: Faouzi Medebbeb Date: Fri, 20 Mar 2020 12:54:15 +0100 Subject: [PATCH] docs: correct a misleading sentence (#36155) (#36158) Fixes #36155 PR Close #36158 --- aio/content/guide/testing.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/aio/content/guide/testing.md b/aio/content/guide/testing.md index 4fd661ae45..a6a7945e72 100644 --- a/aio/content/guide/testing.md +++ b/aio/content/guide/testing.md @@ -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.