Questions tagged [mocha]

Mocha is a feature-rich JavaScript test framework running on node.js and the browser. Mocha allows you to use any assertion library you want, if it throws an error, it will work. This means you can utilize libraries such as should.js, node's regular assert module, or others.

Filter by
Sorted by
Tagged with
3
votes
1answer
780 views

Unit testing Backbone Model

I would like to hear other people's opinion on how I unit tested a functionality in a Backbone Model. As you see below, the code under test, upon being called to toggle, toggles its completed state ...