See the tutorials at:
by Nicolas Perriault.
There are six branches:
$ git branch -a
async # Example of asynchronous testing
blanket # Covering
* master # Simple example
sinon # Example of mocking with sinon
karma # Example of how to use karma
travis # Example of how to use karma with travis
To install dependencies:
$ npm install -g mocha
$ mkdir vendor
$ mocha init vendor
$ npm run-script chai
$ npm run-script sinon