A demo setup for unit testing client-side JavaScript code with Mocha.js and Chai.js.
Since mocha 1.2, you can install mocha via Node and run mocha init to generate a client side testing skeleton inside the directory at .
An example setup for unit testing JavaScript in the browser with the Mocha testing framework and Chai assertions
JavaScript