fix(core): update
This commit is contained in:
parent
edc1097020
commit
b4663a0d3a
@ -31,4 +31,4 @@
|
|||||||
"tslint": "^5.11.0",
|
"tslint": "^5.11.0",
|
||||||
"tslint-config-prettier": "^1.17.0"
|
"tslint-config-prettier": "^1.17.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -9,7 +9,7 @@ tap.test('should create an emitter ->', async () => {
|
|||||||
expect(myEventEmitter).to.be.instanceof(smartevent.EventEmitter);
|
expect(myEventEmitter).to.be.instanceof(smartevent.EventEmitter);
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.test('smartevent.once -> should return a promise', async (tools) => {
|
tap.test('smartevent.once -> should return a promise', async tools => {
|
||||||
const oncePromise = smartevent.once(myEventEmitter, 'customEvent');
|
const oncePromise = smartevent.once(myEventEmitter, 'customEvent');
|
||||||
expect(oncePromise).to.be.instanceof(Promise);
|
expect(oncePromise).to.be.instanceof(Promise);
|
||||||
expect(oncePromise).to.not.be.rejected;
|
expect(oncePromise).to.not.be.rejected;
|
||||||
|
Loading…
Reference in New Issue
Block a user