HF RL Explorer

event emitter: add test

event emitter: add test: a task in smol-software-harbor (Harbor dataset). Add tests to test/emitter.test.js for two behaviours that are not covered yet: off(event, fn) removes only that listener (other listeners of the same event still fire), and emit() returns the number of listeners it called (0…

The task

Add tests to `test/emitter.test.js` for two behaviours that are not covered yet: `off(event, fn)` removes only that listener (other listeners of the same event still fire), and `emit()` returns the number of listeners it called (0 for an event nobody listens to). Do not modify `lib/emitter.js` or delete existing…

Part of efederici/smol-software-harbor.