Converting Jasmine tests to JavaScript.