var jsdom = require('jsdom').jsdom;

var doc = jsdom('<html><body></body></html>');
var win = doc.defaultView;

/* global global */

global.window = win;
global.document = win.document;
global.navigator = win.navigator;

var JSDOM = require('jsdom').JSDOM;

var doc = new JSDOM('<html><body></body></html>');
var win = doc.window;

/* global global */

global.window = win;
global.document = win.document;
global.navigator = win.navigator;

Change to the new jsdom API
Change to the new jsdom API
