Skip to content

Commit 6ea9b7f

Browse files
committed
add es6-shim for tests, fix lint
1 parent 8b073c8 commit 6ea9b7f

File tree

5 files changed

+202
-197
lines changed

5 files changed

+202
-197
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"babel-runtime": "^6.0.0",
5151
"chai": "^3.5.0",
5252
"es5-shim": "^4.5.0",
53+
"es6-shim": "^0.35.3",
5354
"eslint": "^3.17.1",
5455
"eslint-config-defaults": "^9.0.0",
5556
"eslint-plugin-react": "^6.10.0",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import RecaptchaWrapper from './recaptcha-wrapper';
1+
import RecaptchaWrapper from "./recaptcha-wrapper";
22
import ReCAPTCHA from "./recaptcha";
33

44
export default RecaptchaWrapper;

test/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import "es5-shim";
2+
import "es6-shim";
23
const testsContext = require.context(".", true, /-spec$/);
34
testsContext.keys().forEach(testsContext);

test/recaptcha-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe("ReCAPTCHA", () => {
7474
}
7575
}
7676
const instance = ReactTestUtils.renderIntoDocument(
77-
(<WrappingComponent />)
77+
React.createElement(WrappingComponent)
7878
);
7979
instance._internalRef.current.execute();
8080
});

0 commit comments

Comments
 (0)