If you have not already, download Jasmine from http://pivotal.github.io/jasmine/
After you decompress the downloaded file you see this directory structure.
As you can see, the SpecRunner.html file is your user interface that is simply run from a web browser. The spec folder will hold, as you guessed, your specification code—what you want your implementation to do. The src folder will contain the code you are testing.
Next, the source code file,DateSort.js, goes in the scr directory:
OK, with basic structure in place let's do a sanity check and make sure we get a failing test result:
Now reload the browser and the spec passes.
Next we will add the spec to sort descending.
Reload the browser and we see the spec fail as we have not implemented any code for the spec.
Refresh the browser again and bang!
As you can see using Jasmine is pretty straight forward. Setup is a matter of expanding the compressed file. Moreover, if one has a web browser and text editor you a ready to code the specs and source code.