mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Merge pull request #15290 from DefinitelyTyped/fix_chai-as-promised
chai-as-promised: Fix tests
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import chai = require('chai');
|
||||
import chaiAsPromised = require('chai-as-promised');
|
||||
import Q = require('q');
|
||||
|
||||
chai.use(chaiAsPromised);
|
||||
|
||||
@@ -45,7 +44,7 @@ thenableNum.should.be.fulfilled.then(function () {
|
||||
thenableNum.should.equal("after");
|
||||
}).should.notify(() => console.log('done'));
|
||||
|
||||
Q.all([
|
||||
Promise.all([
|
||||
thenableNum.should.become("happy"),
|
||||
thenableNum.should.eventually.have.property("fun times"),
|
||||
thenableNum.should.be.rejectedWith(TypeError, "only joyful types are allowed")
|
||||
|
||||
Reference in New Issue
Block a user