7. Add another test to check a property
Remove the failing test
Under the last
it
block add anotherit
block and write a test to check the title property is set correctly
src/app/app.component.spec.ts
set the title accordingly in the component
src/app/app.component.ts
Note that the AppComponent requires a CompanyService parameter. For now, we won't use it in the test though, so we just pass null.
Karma should still be running from your last test and on save of the spec file automatically re-run.
Last updated