January 2019
Intermediate to advanced
240 pages
5h 59m
English
This chapter covers
Angular applications are built from components, so the most important place to start when testing an Angular application is with component tests. For example, imagine a component that displays a calendar. It might enable a user to select a date, change the selected date, cycle through months and years, and so on. You need to write a test case for each of these pieces of functionality.
In this chapter, we’ll cover key testing classes and functions, such as TestBed, ComponentFixture, and fakeAsync, which help you test your components. You’ll need a good grasp of these classes and functions ...
Read now
Unlock full access