Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit c72522e

Browse files
authored
Upgrade outdated dependencies (#102)
* Upgrade mocha to latest version * Upgrade nyc to latest version * Upgrade chai to latest version * Upgrade enzyme to latest version * Upgrade sinon to latest version * Upgrade sinon-chai to latest version * Upgrade cross-env to latest version * Upgrade react to latest version * Upgrae redux to latest version * Upgrade prop-types to latest version * Upgrade babel-eslint to latest version * Upgrade babel-plugin-istanbul to latest version * Upgrade hoist-non-react-statics to latest version * Upgrade jsdom to latest version * Remove duplicate comment * Bring back semi colon
1 parent b6924f2 commit c72522e

File tree

4 files changed

+307
-215
lines changed

4 files changed

+307
-215
lines changed

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"license": "MIT",
3838
"dependencies": {
3939
"babel-runtime": "^6.23.0",
40-
"hoist-non-react-statics": "^1.2.0",
40+
"hoist-non-react-statics": "^2.0.0",
4141
"react-static-container": "^1.0.1"
4242
},
4343
"peerDependencies": {
@@ -53,36 +53,36 @@
5353
"@flowio/babel-preset-flowio": "^1.3.0",
5454
"@flowio/eslint-config-flowio": "^9.0.0",
5555
"babel-cli": "^6.24.1",
56-
"babel-eslint": "^7.2.1",
57-
"babel-plugin-istanbul": "^4.1.1",
56+
"babel-eslint": "^7.2.3",
57+
"babel-plugin-istanbul": "^4.1.4",
5858
"babel-plugin-transform-decorators-legacy": "^1.3.4",
5959
"babel-register": "^6.18.0",
60-
"chai": "^3.5.0",
61-
"chai-as-promised": "^6.0.0",
62-
"cross-env": "^4.0.0",
60+
"chai": "^4.0.2",
61+
"chai-as-promised": "^7.0.0",
62+
"cross-env": "^5.0.1",
6363
"deep-freeze": "^0.0.1",
64-
"enzyme": "^2.8.2",
64+
"enzyme": "^2.9.1",
6565
"eslint": "^3.19.0",
6666
"eslint-plugin-import": "^2.6.1",
6767
"eslint-plugin-jsx-a11y": "^5.1.0",
6868
"eslint-plugin-react": "^7.1.0",
6969
"greenkeeper-postpublish": "^1.0.1",
70-
"jsdom": "^9.12.0",
70+
"jsdom": "^11.0.0",
7171
"lodash": "^4.17.4",
72-
"mocha": "^3.2.0",
72+
"mocha": "^3.4.2",
7373
"nodemon": "^1.11.0",
7474
"npm-run-all": "^4.0.2",
75-
"nyc": "^10.2.0",
76-
"prop-types": "^15.5.8",
77-
"react": "^15.5.4",
78-
"react-dom": "^15.5.4",
79-
"react-redux": "^5.0.3",
75+
"nyc": "^11.0.3",
76+
"prop-types": "^15.5.10",
77+
"react": "^15.6.1",
78+
"react-dom": "^15.6.1",
79+
"react-redux": "^5.0.5",
8080
"react-router": "^3.0.3",
81-
"react-test-renderer": "^15.5.4",
82-
"redux": "^3.6.0",
81+
"react-test-renderer": "^15.6.1",
82+
"redux": "^3.7.1",
8383
"redux-mock-store": "^1.2.2",
8484
"redux-thunk": "^2.2.0",
85-
"sinon": "^2.1.0",
86-
"sinon-chai": "^2.9.0"
85+
"sinon": "^2.3.6",
86+
"sinon-chai": "^2.11.0"
8787
}
8888
}

test/setup.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { jsdom } from 'jsdom';
1+
import jsdom from 'jsdom';
22
import chai from 'chai';
33
import sinon from 'sinon';
44
import sinonChai from 'sinon-chai';
@@ -24,9 +24,15 @@ chai.use(sinonChai);
2424
chai.use(chaiAsPromised);
2525

2626
// Setup JSDOM
27-
global.document = jsdom('<!doctype html><html><body></body></html>');
28-
global.window = document.defaultView;
29-
global.navigator = global.window.navigator;
27+
const { window } = new jsdom.JSDOM('<!doctype html><html><body></body></html>');
28+
global.window = window;
29+
30+
Object.keys(global.window).forEach((key) => {
31+
if (!(key in global)) {
32+
global[key] = global.window[key];
33+
}
34+
});
35+
3036

3137
// Stub console.error() to throw an error when called.
3238
// The intention is to catch prop type validation errors in React components.

test/specs/FetchContainer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ describe('withFetch', () => {
4848
static meta = meta;
4949
}
5050

51-
expect(Container).to.have.deep.property('meta.name', meta.name);
51+
expect(Container).to.have.nested.property('meta.name', meta.name);
5252
});
5353
});

0 commit comments

Comments
 (0)