Summary
In this chapter, we learned how to apply Sinon.JS stubs, mocks, and other fakes to isolate Backbone.js components, reduce test complexity, and enhance predictable test behavior. We also finished all of the application tests that we will discuss in this book for the reference Notes application. Taking a moment to reflect upon our progress leading up to this point, we have now covered the basics of creating a test infrastructure and applying fundamental testing concepts to all of the various Backbone.js application components.
But, this is really just the beginning of the substantive testing journey; the tests presented in this book are a subset of those that would be desirable for a full production Backbone.js application. Our hope is that you now have the necessary tools, development techniques, and starting points to provide full test support for your Backbone.js applications.
In the next chapter, we will aim at extending our testing capabilities and use cases through test automation...