Skip to content

Commit

Permalink
add test cases for space-before-function-paren
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Feb 16, 2021
1 parent 5573163 commit ba7afc8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions eslint/babel-eslint-tests/test/integration/eslint/verify.js
Expand Up @@ -1814,6 +1814,20 @@ describe("verify", () => {
{ "func-names": 1 },
);
});

it("should work with space-before-function-paren", () => {
verifyAndAssertMessages(
`
export class C {
#d() {};
}
`,
{ "space-before-function-paren": 1 },
[
"2:5 Missing space before function parentheses. space-before-function-paren",
],
);
});
});
});

Expand Down

0 comments on commit ba7afc8

Please sign in to comment.