Update dynamic-import test app to use React 16.

This commit is contained in:
Ben Newman
2017-11-06 15:40:36 -05:00
parent 9526ce8976
commit 1cbcfb59bc
3 changed files with 5 additions and 16 deletions

View File

@@ -32,16 +32,6 @@
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.1.tgz",
"integrity": "sha1-rmh03GaTd4m4B1T/VCjfZoGcpQs="
},
"create-react-class": {
"version": "15.6.2",
"resolved": "https://registry.npmjs.org/create-react-class/-/create-react-class-15.6.2.tgz",
"integrity": "sha1-zx7RXxKq1/FO9fLf4F5sQvke8Co=",
"requires": {
"fbjs": "0.8.16",
"loose-envify": "1.3.1",
"object-assign": "4.1.1"
}
},
"encoding": {
"version": "0.1.12",
"resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz",
@@ -825,11 +815,10 @@
"integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM="
},
"react": {
"version": "15.6.2",
"resolved": "https://registry.npmjs.org/react/-/react-15.6.2.tgz",
"integrity": "sha1-26BDSrQ5z+gvEI8PURZjkIF5qnI=",
"version": "16.0.0",
"resolved": "https://registry.npmjs.org/react/-/react-16.0.0.tgz",
"integrity": "sha1-zn348ZQbA28Cssyp29DLHw6FXi0=",
"requires": {
"create-react-class": "15.6.2",
"fbjs": "0.8.16",
"loose-envify": "1.3.1",
"object-assign": "4.1.1",

View File

@@ -13,7 +13,7 @@
"moment": "^2.17.1",
"optimism": "^0.3.3",
"private": "^0.1.7",
"react": "^15.4.2",
"react": "^16.0.0",
"uuid": "^3.1.0"
}
}

View File

@@ -71,7 +71,7 @@ describe("dynamic import(...)", function () {
import("react")
]).then(([{ name }, React]) => {
assert.strictEqual(name, "react");
assert.strictEqual(typeof React.createClass, "function");
assert.strictEqual(typeof React.createElement, "function");
assertDeepEqual(React, require("re" + "act"));
});
});