About
This is sample of writing unit tests for JavaScript code using Mocha testing framework. It also uses Chai assertions library.
Environment preparation
Linux debian
sudo apt-get install nodejs npm
sudo npm install -g mocha
Running tests
cd javascript-mocha-unit-test-sample
npm install chai
mocha