From 71b8bbef9569f1aa80f7e73f1d43d06b024ac1fe Mon Sep 17 00:00:00 2001 From: Amadou Sall Date: Fri, 22 Mar 2019 11:24:04 +0100 Subject: [PATCH] docs: fix minor typo in testing.md (#29464) PR Close #29464 --- aio/content/guide/testing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aio/content/guide/testing.md b/aio/content/guide/testing.md index a900bea96e..59e1ca30f5 100644 --- a/aio/content/guide/testing.md +++ b/aio/content/guide/testing.md @@ -289,7 +289,7 @@ written without assistance from Angular testing utilities. #### Services with dependencies Services often depend on other services that Angular injects into the constructor. -In many cases, it easy to create and _inject_ these dependencies by hand while +In many cases, it's easy to create and _inject_ these dependencies by hand while calling the service's constructor. The `MasterService` is a simple example: @@ -318,7 +318,7 @@ Prefer spies as they are usually the easiest way to mock services. These standard testing techniques are great for unit testing services in isolation. -However, you almost always inject service into application classes using Angular +However, you almost always inject services into application classes using Angular dependency injection and you should have tests that reflect that usage pattern. Angular testing utilities make it easy to investigate how injected services behave.