Friday, January 13, 2012

how to run a Jasmine test

To run the Jasmine test detailed here, I just open SpecRunner.html in a browser and get a red (well, pink) screen in the event of a failure (for example when I take widget.children("#mover").click(); out of widgetExample.spec.js) and a green screen in the event of a success. It kind of reminds me of Kevin Hurwitz's NAAK in this regard.

widgetExample.spec.js tests widgetExample.js. That is the naming convention.

No comments:

Post a Comment