Rather than `spyOn`, which overwrites the `raiseEvent` function, we normally use `jasmine.createSpy` and `addEventListener`