Rendering: Given a model or collection, you should verify that the output HTML is the right one
Events: This verifies that the DOM events are handled correctly
Model changes: If the model changes something, the view should be in sync
When making test on views, it is recommended to use a fake model and not the original
Contact model. The main reason for this is to isolate the
ContactView object so that if a test fails, you will know that the error is isolated in the view and does not depend on the
You can start testing whether the rendered HTML is right, as follows:
var Backbone = require('backbone'); var ContactForm = require('../../.....