O'Reilly logo

Jasmine JavaScript Testing - Second Edition by Paulo Ragonha

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

In this chapter, you learned how testing can become so much easier once you drive the application development by tests. You saw how to use the module pattern to better organize the project code and how the View pattern can help create a more maintainable browser code.

You learned how to use HTML fixtures, making your specs much more readable and understandable. I also showed you how to test code that interacts with the browser's DOM by the use of custom jQuery matchers.

In the next chapter, we will go a step further and start testing server integration and asynchronous code.

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