Summary

In this chapter, you learned how testing can become so much easier once you drive the application development by tests. You have seen 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 have also showed you how to test code that interacts with the browser's DOM by the use of custom jQuery matchers.

To learn a bit more about frontend testing, be sure to check the bonus chapter on Testing jQuery plugins.

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

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset