Embed presentation
Download to read offline
































The document discusses unit testing frontend applications built with Backbone.js. It recommends testing business logic, public APIs, models, collections, controllers, shared functionality like mixins and base classes, and views. It provides examples of using the Karma test runner with Require.js, Jasmine or Mocha/Chai for writing asynchronous tests and the Sinon.js library for mocking XHR requests and stubbing methods. Specific Backbone.js components like Models, Collections, a custom Controller class, and Views are listed as subjects to test.






























