This is my code
it('fires change event when calling blah.doSomethingThatFiresChange', async function (done) {
const blah = await getBlah()
blah.on('change', () => done())
blah.doSomethingThatFiresChange()
})
And I have the folowing error
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
But I am not returning any promise
If I change mu code for
it('fires change event when calling blah.doSomethingThatFiresChange', async function (done) {
const blah = await getBlah()
//blah.on('change', () => done())
blah.doSomethingThatFiresChange()
})
I have a timeout