December 2017
Beginner
372 pages
10h 32m
English
For this test, we will use our board component. If you created the board component using the Angular CLI, then you will already have a corresponding spec file in your folder, as shown in the following screenshot:

If not, create a new file called board.component.spec.ts, where we will add our test cases.
Our board component performs a lot of operations, such as adding a new task, modifying the board title, modifying existing tasks, and much more. We can create many test cases for each of these functionalities, but for our purposes, we will focus on the addTask functionality and write a couple of test cases around that. ...
Read now
Unlock full access