From 17fc016765c5f12589198f6b922c54a48ba48c4f Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Tue, 21 Mar 2017 14:52:16 -0700 Subject: [PATCH] chai-as-promised: Fix tests --- chai-as-promised/chai-as-promised-tests.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chai-as-promised/chai-as-promised-tests.ts b/chai-as-promised/chai-as-promised-tests.ts index d9f681769b..7dceef924a 100644 --- a/chai-as-promised/chai-as-promised-tests.ts +++ b/chai-as-promised/chai-as-promised-tests.ts @@ -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")