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 "Using Sinon.js" 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:

Sinon.js can be used to "spy" on methods or watch when they are called. Testing method call often triggers side effects. In that case, Sinon.js can be used to "stub" the method or block it from running.

Get Unlimited Access Now