Downgrade version of jsdom to support node 4 since destructing is not supported.

This commit is contained in:
Melvin Philips 2017-10-03 14:16:23 -07:00
parent b3903e8ec5
commit c292e691b8
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@
],
"devDependencies": {
"ava": "*",
"jsdom": "^11.3.0",
"jsdom": "^9.12.0",
"xo": "*"
}
}

View file

@ -1,6 +1,6 @@
import util from 'util';
import test from 'ava';
import {JSDOM} from 'jsdom';
import {jsdom} from 'jsdom';
import m from '.';
const isNode8orHigher = Number(process.versions.node.split('.')[0]) >= 8;
@ -361,7 +361,7 @@ test('is.inRange', t => {
});
test('is.domElement', t => {
const {document} = (new JSDOM(`...`)).window;
const document = jsdom();
t.true(m.domElement(document.createElement('div')));
t.false(m.domElement('hello world'));
t.false(m.domElement([]));