Chapter 8. Unit testing
This chapter covers
- An introduction to unit testing
- Using JavaScript testing frameworks
- Unit testing MV* objects
- An introduction to behavior-driven development unit testing
When you create software, regardless of the platform or language used, you want to do your best to ensure that you’re delivering a quality product. In this book, you’ve looked at various ways to create a maintainable, robust SPA, such as dividing your code into modules and using the power of MV* frameworks. Another vital facet of SPA programming is testing. Testing what you write is just as important to the delivery of the end product as the code itself. Putting your code through the paces does a lot more than uncover bugs. When you see that ...
Get SPA Design and Architecture 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.