Skip to content

Commit

Permalink
add es6-shim for tests, fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hartzis committed Aug 14, 2018
1 parent 8b073c8 commit 6ea9b7f
Show file tree
Hide file tree
Showing 5 changed files with 202 additions and 197 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"babel-runtime": "^6.0.0",
"chai": "^3.5.0",
"es5-shim": "^4.5.0",
"es6-shim": "^0.35.3",
"eslint": "^3.17.1",
"eslint-config-defaults": "^9.0.0",
"eslint-plugin-react": "^6.10.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import RecaptchaWrapper from './recaptcha-wrapper';
import RecaptchaWrapper from "./recaptcha-wrapper";
import ReCAPTCHA from "./recaptcha";

export default RecaptchaWrapper;
Expand Down
1 change: 1 addition & 0 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "es5-shim";
import "es6-shim";
const testsContext = require.context(".", true, /-spec$/);
testsContext.keys().forEach(testsContext);
2 changes: 1 addition & 1 deletion test/recaptcha-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe("ReCAPTCHA", () => {
}
}
const instance = ReactTestUtils.renderIntoDocument(
(<WrappingComponent />)
React.createElement(WrappingComponent)
);
instance._internalRef.current.execute();
});
Expand Down

0 comments on commit 6ea9b7f

Please sign in to comment.