Fix backend tests
This commit is contained in:
@@ -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<string, string>('me')
|
||||
const dispatcher = new EventDispatcher<string, string>()
|
||||
this.timeout(300)
|
||||
|
||||
setTimeout(() => dispatcher.dispatch('hello'), 5)
|
||||
@@ -19,7 +18,7 @@ describe('EventDispatcher', async () => {
|
||||
})
|
||||
|
||||
it('should unsubscribe', async function() {
|
||||
const dispatcher = new EventDispatcher<string, string>('me')
|
||||
const dispatcher = new EventDispatcher<string, string>()
|
||||
this.timeout(300)
|
||||
let incrementee = 0
|
||||
const callback = (msg: any) => {
|
||||
|
||||
Reference in New Issue
Block a user