Skip to content

Commit

Permalink
update test deps
Browse files Browse the repository at this point in the history
  • Loading branch information
eightypop committed Sep 30, 2017
1 parent 81d9d18 commit 48b2a33
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@
"babel-preset-react": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
"babel-register": "^6.18.0",
"chai": "^3.5.0",
"chai": "^4.1.2",
"cross-env": "^5.0.1",
"eslint": "^4.6.1",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-react": "^7.1.0",
"github-changes": "^1.0.4",
"jsdom": "^8.4.0",
"mocha": "^2.4.5",
"jsdom": "^11.2.0",
"mocha": "^3.5.3",
"react": "^15.0.1",
"react-dom": "^0.14.0 || ^15.0.0",
"should": "^8.0.2",
"sinon": "^1.17.3",
"should": "^13.0.1",
"sinon": "^3.2.1",
"webpack": "^1.13.3",
"webpack-dev-server": "^1.16.2"
},
Expand Down
8 changes: 4 additions & 4 deletions test/setup.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const jsdom = require('jsdom').jsdom
const JSDOM = require('jsdom').JSDOM
const matchMedia = require('matchmediaquery')

process.env.NODE_ENV = 'test'

global.document = jsdom('<!doctype html><html><body><div id="app"></div></body></html>', {
global.window = new JSDOM('<!doctype html><html><body><div id="app"></div></body></html>', {
url: 'http://test.page'
})
global.window = document.defaultView
}).window
global.document = window.document
global.self = global.window
global.navigator = global.window.navigator

Expand Down

0 comments on commit 48b2a33

Please sign in to comment.