BUt as far as testing goes, you can test the event handler and test that it returns the expected map. The framework is responsible for actually executing the event that is described the event handler and it does it via the name :stop-ticker. Your event handler itself can remain a pure function.
Comments
Yes, exactly.
There is a piece of code which emits the event :stop-timer, that stops a js timer in the window.
In clojure a map has the syntax So this event handler is returning a map which describes the event.There is then a further function which does the actual event
BUt as far as testing goes, you can test the event handler and test that it returns the expected map. The framework is responsible for actually executing the event that is described the event handler and it does it via the name :stop-ticker. Your event handler itself can remain a pure function.