/mocha-chai-sinon--example

See https://nicolas.perriault.net/code/2013/testing-frontend-javascript-code-using-mocha-chai-and-sinon/

Primary LanguageJavaScript

Tutorial on Mocha at Codeship

See the tutorials at:

by Nicolas Perriault.

There are six branches:

  $ git branch -a
    async         # Example of asynchronous testing
    blanket       # Covering
  * master        # Simple example
    sinon         # Example of mocking with sinon
    karma         # Example of how to use karma
    travis        # Example of how to use karma with travis

Build Status

To install dependencies:

                    $ npm install -g mocha
                    $ mkdir vendor
                    $ mocha init vendor
                    $ npm run-script chai
                    $ npm run-script sinon