Skip to content

Commit

Permalink
Update mocha/jsdom to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BinaryMuse committed Apr 5, 2015
1 parent a17b088 commit ff410be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -24,13 +24,13 @@
"chai": "^1.9.1",
"css-loader": "^0.6.12",
"envify": "^1.2.1",
"jsdom": "^0.10.5",
"jsdom": "1.x",
"json-loader": "^0.5.0",
"jsx-loader": "^0.12.0",
"jsxhint": "^0.5.0",
"less": "^1.7.0",
"less-loader": "^0.7.3",
"mocha": "^1.18.2",
"mocha": "^2.2.1",
"react": "^0.13.0",
"react-router": "^0.13.0",
"sinon": "^1.9.1",
Expand Down
3 changes: 2 additions & 1 deletion test/unit/test_flux_mixin.js
Expand Up @@ -55,7 +55,8 @@ describe("FluxMixin", function() {
console._warn = console.warn;
console.warn = function() {};

global.window = jsdom.jsdom().createWindow("<html><body></body></html>");
var doc = jsdom.jsdom('<html><body></body></html>');
global.window = doc.defaultView;
global.document = window.document;
global.navigator = window.navigator;
React = require("react/addons");
Expand Down
3 changes: 2 additions & 1 deletion test/unit/test_store_watch_mixin.js
Expand Up @@ -10,7 +10,8 @@ describe("StoreWatchMixin", function() {

beforeEach(function() {

global.window = jsdom.jsdom().createWindow("<html><body></body></html>");
var doc = jsdom.jsdom('<html><body></body></html>');
global.window = doc.defaultView;
global.document = window.document;
global.navigator = window.navigator;
for (var i in require.cache) {
Expand Down

0 comments on commit ff410be

Please sign in to comment.