Though some of the concepts in this course are still relevant, overall this course does not reflect our current course standards or industry best practices.

Check out a free preview of the full Backbone.js (with Introduction to Testing) course:
The "Testing in Backbone" Lesson is part of the full, Backbone.js (with Introduction to Testing) course featured in this preview video. Here's what you'd learn in this lesson:

Mocha is a JavaScript test framework running NodeJS and in the browser making asynchronous testing simple. However, Mocha doesn't contain an assertion library. That's where Chai comes in. Sam includes a third library, Sinon.js for running the test spies.

Get Unlimited Access Now