Jasmine is a behavior-driven development (BDD) framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a DOM. And it has a clean, obvious syntax so that you can easily write tests. This screencast is an overview of how Jasmine can be used to test typical JavaScript code.
[youtube PWHyE1Ru4X0]
Video source: http://searls.testdouble.com/posts/2013-03-21-jasmine-tactics-screencast.html
Source code of the video: https://github.com/searls/refactor-to-backbone-example