[jsdom] use new VirtualConsole constructor

This commit is contained in:
Pooya Parsa 2017-04-30 01:40:56 +04:30
parent 2d7a0874f0
commit 8391f308b7

View File

@ -136,7 +136,7 @@ export function renderAndGetWindow (url, opts = {}) {
process.exit(1) process.exit(1)
} }
} }
let virtualConsole = jsdom.createVirtualConsole().sendTo(console) let virtualConsole = new jsdom.VirtualConsole().sendTo(console)
if (opts.virtualConsole === false) { if (opts.virtualConsole === false) {
virtualConsole = undefined virtualConsole = undefined
} }