diff --git a/aio/content/examples/testing/src/app/welcome/welcome.component.spec.ts b/aio/content/examples/testing/src/app/welcome/welcome.component.spec.ts index e12e61c265..8504215b96 100644 --- a/aio/content/examples/testing/src/app/welcome/welcome.component.spec.ts +++ b/aio/content/examples/testing/src/app/welcome/welcome.component.spec.ts @@ -130,6 +130,6 @@ describe('WelcomeComponent', () => { })); it('TestBed and Component UserService should be the same', () => { - expect(userService === componentUserService).toBe(true); + expect(userService).toBe(componentUserService); }); });