From 8321414f0531f6d45102bd090f05de30b27e16e6 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Fri, 15 Dec 2023 16:06:14 -0600 Subject: [PATCH] fix tests --- test/handlers/dispatchers.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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());