Unit Testing in JavaScript via Jasmine
I show you how to write unit tests in JavaScript using the Jasmine library and test runner. I’ve written classes or “modules” that work inside of Require.js and the code is in Github:
Code:
https://github.com/JesterXL/JavaScript-Jasmine-Unit-Test-Example
Follow me on Twitter and Google+
https://plus.google.com/109537902154361720350
source