Skip to content

Commit 58f42f0

Browse files
committed
Updated Prettier to 2.x.
1 parent 6b627d0 commit 58f42f0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"eslint-config-prettier": "^6.11.0",
4848
"eslint-plugin-prettier": "^3.1.4",
4949
"jest": "^26.6.1",
50-
"prettier": "1.19.1",
50+
"prettier": "^2.1.2",
5151
"react": "^17.0.1",
5252
"react-dom": "^17.0.1"
5353
},

test/recaptcha.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe("ReCAPTCHA", () => {
2222
});
2323

2424
it("should call grecaptcha.render, when it is already loaded", () => {
25-
return new Promise(resolve => {
25+
return new Promise((resolve) => {
2626
const grecaptchaMock = {
2727
render(node, options) {
2828
expect(node).toBeTruthy();
@@ -155,7 +155,7 @@ describe("ReCAPTCHA", () => {
155155
const instance = ReactTestUtils.renderIntoDocument(React.createElement(WrappingComponent));
156156
const executeAsyncDirectValue = instance._internalRef.current.executeAsync();
157157
expect(executeAsyncDirectValue).toBeInstanceOf(Promise);
158-
return executeAsyncDirectValue.then(executeAsyncResolveValue => {
158+
return executeAsyncDirectValue.then((executeAsyncResolveValue) => {
159159
expect(executeAsyncResolveValue).toBe(TOKEN);
160160
});
161161
});

0 commit comments

Comments
 (0)