Commit 1770efad authored by Ben James's avatar Ben James Committed by Tim Neutkens

Fix typo in router error message (#5515)

Tiny typo fix 🙂 
parent dfe7c465
......@@ -7,7 +7,7 @@ export default class EventEmitter {
}
if (this.listeners[event].has(cb)) {
throw new Error(`The listener already exising in event: ${event}`)
throw new Error(`Listener already exists for router event: \`${event}\``)
}
this.listeners[event].add(cb)
......
......@@ -69,7 +69,7 @@ describe('EventEmitter', () => {
const run = () => ev.on('sample', cb)
expect(run).toThrow(/The listener already exising in event: sample/)
expect(run).toThrow(/Listener already exists for router event: `sample`/)
})
it('should support chaining like the nodejs EventEmitter', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment