From 0f21f10c0d08e0a3a418e60c3124388d669ce335 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Fri, 26 Apr 2019 14:57:12 +0200 Subject: [PATCH] Fix backend tests --- backend/src/Model/spec/EventDispatcher.spec.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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) => {