Skip to content

Commit

Permalink
master delete chai-enzyme & fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
akichim21 committed Oct 1, 2017
1 parent b350456 commit e3fdf0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-2": "^6.13.0",
"chai": "^3.5.0",
"chai-enzyme": "^0.6.1",
"enzyme": "^2.8.2",
"chai": "^4.1.2",
"enzyme": "^3.0.0",
"enzyme-adapter-react-16": "^1.0.0",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^14.1.0",
"eslint-plugin-import": "^2.2.0",
Expand All @@ -55,9 +55,9 @@
"jsdom": "^10.0.0",
"mocha": "^3.3.0",
"nyc": "^10.2.0",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-test-renderer": "^15.5.4",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-test-renderer": "^16.0.0",
"sinon": "^2.1.0",
"webpack": "^2.5.1"
}
Expand Down
7 changes: 4 additions & 3 deletions test/test_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
require('babel-register')();
var chai = require('chai');
var JSDOM = require('jsdom').JSDOM;
var chaiEnzyme = require('chai-enzyme');
var Enzyme = require('enzyme');
var Adapter = require('enzyme-adapter-react-16');
var exposedProperties = ['window', 'navigator', 'document'];

Enzyme.configure({ adapter: new Adapter() });

global.dom = new JSDOM('<body></body>');
global.window = dom.window.document.defaultView;

Expand All @@ -18,5 +21,3 @@ Object.keys(dom.window.document.defaultView).forEach((property) => {
global.navigator = {
userAgent: 'node.js',
};

chai.use(chaiEnzyme());

0 comments on commit e3fdf0d

Please sign in to comment.