Skip to content

Commit

Permalink
resolve JSDOM upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker committed Apr 24, 2017
1 parent 0bf3241 commit 153c847
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"lint": "eslint . --ext .js,.jsx",
"coverage": "nyc --reporter lcov --reporter text --extension .jsx --require babel-register npm run test",
"build": "rollup -c",
"prepublish": "npm run build"
"prepublish": "npm run build && npm run test",
"release": "npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
},
"files": [
"dist"
Expand Down
8 changes: 4 additions & 4 deletions test/setup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { jsdom } from 'jsdom';
import { JSDOM } from 'jsdom';

const dom = jsdom('<!doctype html><html><body></body></html>');
const { window } = new JSDOM('<!doctype html><html><body></body></html>');

global.document = dom;
global.window = dom.defaultView;
global.document = window.document;
global.window = window;

0 comments on commit 153c847

Please sign in to comment.