Update AppComponent Test

Run the first test case and fix broken tests that result from changes in the app component.

We'll cover the following

Run tests

We haven’t tested our app yet. For now, we only need to update the existing tests that Angular generated when we created our app.

Note: There are two types of application behaviors in this course.

  • One will always have the ng test command set by default for testing.
  • The other will have ng serve --port 8080 --host --disable-host-check to run the server.

Throughout the course, if you wish to change the behavior, simply terminate the current execution using CTRL+C and start the desired process. Note that you need your API in running state (npm run api-test) before you serve your application.

Get hands-on with 1200+ tech skills courses.