O'Reilly logo

AngularJS Directives by Alex Vanston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. A Deeper Dive into Unit Testing

In the previous chapter we discussed the basics of testing with Angular, including how to set up Karma and write your first few unit and E2E tests. For the next few pages we're going to dive deeper into the realm of unit testing, taking a look at some of the ways being data-driven makes our lives easier, and how striving to make our code easy to test will also directly lead to our code also being more modular and extensible. We'll continue using Jasmine for all our tests here, and many of the examples we cover will be helpful for testing in all frameworks, not just Angular, although of course that will be our primary focus.

Highlighted, again

At the end of our discussion on E2E testing, we added the ability ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required