From 6e5ac301ceaf175f60e569cd97a35683f1a1fe6b Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Tue, 5 Nov 2019 08:36:25 -0800 Subject: [PATCH] test: don't require 'q' until the test that needs it (#20958) this stops a failure to require from blocking all tests from running --- spec-main/modules-spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec-main/modules-spec.ts b/spec-main/modules-spec.ts index 4beb99220b7b..f224a5021ee5 100644 --- a/spec-main/modules-spec.ts +++ b/spec-main/modules-spec.ts @@ -46,9 +46,9 @@ describe('modules support', () => { }) describe('q', () => { - const Q = require('q') describe('Q.when', () => { it('emits the fullfil callback', (done) => { + const Q = require('q') Q(true).then((val: boolean) => { expect(val).to.be.true() done()