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()