In this section, we will take a look at the tests we will need to write to cover the required functionality of our Backbone sample application.
Backbone testing
Test setup
One of the benefits of writing applications in Backbone is that the framework itself does not have many dependencies. To run a Backbone application, we need to have loaded the Underscore library, the jQuery library (or equivalent), and the Backbone framework itself. Once these libraries have been loaded into our browser, we just need to include all of the files that we have written for the application. By way of an example of this, let's take a look at the <head> tag in our index.html file as follows:
<head> <link rel="stylesheet...