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 Dec 9, 2020
1 parent ec78b30 commit abd06d9
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 abd06d9

Please sign in to comment.