This recipe demonstrates how to run Mocha-based unit tests through PhantomJS as an alternative to Jasmine and QUnit.
To run this recipe, we will need the following items:
npminstalled and on our
npm, as follows:
npm install --global mocha
Chai is a platform-agnostic ...