JavaScript Unit Testing with Mocha, Chai and Sinon