January 2016
Intermediate to advanced
278 pages
4h 53m
English
Views manage the relationship between data (such as, models or collections) and the user interactions (DOM). In the case of views, you should test for the following:
For this example, we are going to test the ContactForm view; the responsibility of this view is to show a form to the user and then get the user input to update a model.
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 ...
Read now
Unlock full access