Created
December 7, 2013 20:29
Revisions
-
cciollaro created this gist
Dec 7, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ let's imagine you wanted to test Coin.js 1.) create test/coinTest.js 2.) write tests like these: http://pivotal.github.io/jasmine/. Jasmine is a really great library, go check out that page! :) 3.) when you've written your test, go to SpecRunner.html and include your test and dependencies like so: <!-- include source files here... --> <script type="text/javascript" src="js/Coin.js"></script> <!-- include spec files here... --> <script type="text/javascript" src="test/coinTest.js"></script> 4.) open up SpecRunner.html in your browser 5.) get tests passing :)