jsfiddle / togetherjs

A service for your website that makes it surprisingly easy to collaborate in real-time.
https://togetherjs.com
Mozilla Public License 2.0
7.01k stars 849 forks source link

Add jasmine #1079

Open rjwaring opened 9 years ago

rjwaring commented 9 years ago

This PR adds Karma and Jasmine to allow automated test running and an example of how to write a Jasmine test for one of the functions in Util. It also includes an update to jshint to allow the exclusion of Jasmine's global functions from linting.

To run the tests:

  1. Run npm install
  2. Run karma start

There's also a tweak to util.js because it was failing linting.