Skip to content

Latest commit

 

History

History

mocha-tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Mocha tests

Installation

Go to the root directory (where the package.json is located) and run:

npm install

Running tests

Run the tests once:

npm test

Run the test and re-run them once a file changes:

npm run test:watch

What's included

  • Support for ES-2015 and stage-0 using Babel presets
  • Sinon JS for all stub, spy and mocking needs
  • Mocha to run tests
  • Assertions using Chai, extended with the sinon-chai plugin.
    • The Expect style is used by default, you can change to use Should instead, in test/test-setup.js,