Testing using the event module with jasmine