Converting mocha JS test suite to Jasmine