Write Jasmine tests