Merge pull request #15290 from DefinitelyTyped/fix_chai-as-promised

chai-as-promised: Fix tests
This commit is contained in:
Paul van Brenk
2017-03-22 12:56:26 -07:00
committed by GitHub
+1 -2
View File
@@ -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")