Downgrade version of jsdom to support node 4 since destructing is not supported.
This commit is contained in:
parent
b3903e8ec5
commit
c292e691b8
2 changed files with 3 additions and 3 deletions
|
|
@ -44,7 +44,7 @@
|
|||
],
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"jsdom": "^11.3.0",
|
||||
"jsdom": "^9.12.0",
|
||||
"xo": "*"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
4
test.js
4
test.js
|
|
@ -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([]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue