Used jasmine to write some unit tests for javascript code.