diff --git a/backend/src/Model/spec/EventDispatcher.spec.ts b/backend/src/Model/spec/EventDispatcher.spec.ts index 441d886..92a99f5 100644 --- a/backend/src/Model/spec/EventDispatcher.spec.ts +++ b/backend/src/Model/spec/EventDispatcher.spec.ts @@ -1,11 +1,10 @@ -import 'mocha' import { EventDispatcher } from '../../../../events' - import { expect } from 'chai' +import 'mocha' describe('EventDispatcher', async () => { - it('should dispatch', async function () { - const dispatcher = new EventDispatcher('me') + it('should dispatch', async function() { + const dispatcher = new EventDispatcher() this.timeout(300) setTimeout(() => dispatcher.dispatch('hello'), 5) @@ -18,8 +17,8 @@ describe('EventDispatcher', async () => { expect(response).to.eq('hello') }) - it('should unsubscribe', async function () { - const dispatcher = new EventDispatcher('me') + it('should unsubscribe', async function() { + const dispatcher = new EventDispatcher() this.timeout(300) let incrementee = 0 const callback = (msg: any) => {