Design Angular Apps with Tests

Let’s test-drive an Angular version of the front end for the TO-DO app we created in Chapter 6, ​Test-Drive Express Apps​.

Most programmers are new to Angular and it’s hard to write tests for a piece of code when the implementation is not clear in our minds. When unsure, you can refer back to the spike we just created. It gives you a fairly good idea of the shape and structure of any Angular application. Any time you’re not sure about what test to write next, glance at the spike code to think through a possible implementation.

The client side we’ll create will look the same as the previous versions we created using jQuery and AngularJS 1.x. The sketch is shown here again for your convenience:

To implement ...

Get Test-Driving JavaScript Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.