Code to accompany the following article: http://www.sitepoint.com/unit-test-javascript-mocha-chai
To run the code samples:
- Clone the repo
- Run
npm install - Open
testrunner.htmlin browser - Alternatively, uncomment Node specific code and run
mochafrom the command line (this requires Mocha to be installed globally).
License MIT