Skip to content

Commit

Permalink
ESLint: enable 'arrow-body-style' rule (#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 1, 2019
1 parent cd80f94 commit 1023264
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.yml
Expand Up @@ -278,7 +278,7 @@ rules:
# ECMAScript 6
# https://eslint.org/docs/rules/#ecmascript-6

arrow-body-style: off
arrow-body-style: error
constructor-super: error
no-class-assign: error
no-const-assign: error
Expand Down
10 changes: 4 additions & 6 deletions src/subscription/__tests__/subscribe-test.js
Expand Up @@ -381,9 +381,9 @@ describe('Subscription Initialization Phase', () => {

it('resolves to an error for subscription resolver errors', async () => {
// Returning an error
const subscriptionReturningErrorSchema = emailSchemaWithResolvers(() => {
return new Error('test error');
});
const subscriptionReturningErrorSchema = emailSchemaWithResolvers(
() => new Error('test error'),
);
await testReportsError(subscriptionReturningErrorSchema);

// Throwing an error
Expand All @@ -394,9 +394,7 @@ describe('Subscription Initialization Phase', () => {

// Resolving to an error
const subscriptionResolvingErrorSchema = emailSchemaWithResolvers(
async () => {
return new Error('test error');
},
async () => new Error('test error'),
);
await testReportsError(subscriptionResolvingErrorSchema);

Expand Down

0 comments on commit 1023264

Please sign in to comment.