Skip to content

An example setup for unit testing JavaScript in the browser with the Mocha testing framework and Chai assertions

Notifications You must be signed in to change notification settings

gblizycki/mocha-chai-browser-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A demo setup for unit testing client-side JavaScript code with Mocha.js and Chai.js.

Since mocha 1.2, you can install mocha via Node and run mocha init to generate a client side testing skeleton inside the directory at .

This sample also includes a Karma configuration to run the tests automatically.

To use Karma, you need to have node.js and npm installed. In the project directory, type npm install karma-mocha. After the karma install is finished, type node_modules/.bin/karma start and navigate to http://localhost:9876 to let Karma capture the web browser and run the tests automatically.

About

An example setup for unit testing JavaScript in the browser with the Mocha testing framework and Chai assertions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published