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

Summary

Obviously, these few pages are far too short to dive very far into the complexities of unit testing; hopefully, however, this has given you a taste of the various approaches you can take and reinforced for you why our original principle of data-driven modularity is so important. As a final note on testing, because we're using Jasmine for all our unit tests, all of Jasmine's functionality is still available, including custom matchers and spies. In the next chapter, we're going to wrap-up our study on directives by building a full featured module from scratch, making use of everything we've learned so far, and discovering a few new awesome tricks along the way as well.

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