diff --git a/test/handlers/dispatchers.test.ts b/test/handlers/dispatchers.test.ts index ea121e4a..0f100d25 100644 --- a/test/handlers/dispatchers.test.ts +++ b/test/handlers/dispatchers.test.ts @@ -29,14 +29,14 @@ describe('eventDispatcher standard', () => { }); it('should throw', () => { - expect(() => eventDispatcher(m, undefined, 'not event emitter')).toThrowError(); + expect(() => eventDispatcher(m, 'not event emitter')).toThrowError(); }); it("Shouldn't throw", () => { - expect(() => eventDispatcher(m, undefined, ee)).not.toThrowError(); + expect(() => eventDispatcher(m, ee)).not.toThrowError(); }); it('Should be called once', () => { - const s = eventDispatcher(m, undefined, ee); + const s = eventDispatcher(m, ee); s.subscribe(); ee.emit(m.name, faker.string.alpha());