Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobes committed Dec 15, 2023
1 parent 5ba670e commit 8321414
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/handlers/dispatchers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 8321414

Please sign in to comment.