/unit-testing-examples

JavaScript unit testing examples using the Mocha and Chai libraries.

Primary LanguageJavaScript

javascript-unit-testing-with-mocha

code about JavaScript Unit test with Mocha, Chai, Sinon

Setup

  • Install Nodejs >= v6.10.3
  • Install Mocha by running the command $ npm install --global mocha
  • Clone this Project and navigate to the javascript-unit-testing-with-mocha/xx directory in command line (xx is like 01)
  • Run npm install to install all dependencies from package.json
  • Run npm test to run all test specs.