Skip to content

Commit 086c1d6

Browse files
authored
Chore: add more test cases for no-sequences (#14579)
1 parent 6a2ced8 commit 086c1d6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/lib/rules/no-sequences.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ ruleTester.run("no-sequences", rule, {
5959

6060
// valid code with "allowInParentheses" set to `false`
6161
{ code: "for ((i = 0, j = 0); test; );", options: [{ allowInParentheses: false }] },
62-
{ code: "for (; test; (i++, j++));", options: [{ allowInParentheses: false }] }
62+
{ code: "for (; test; (i++, j++));", options: [{ allowInParentheses: false }] },
63+
64+
// https://github.com/eslint/eslint/issues/14572
65+
{ code: "const foo = () => { return ((bar = 123), 10) }", env: { es6: true } },
66+
{ code: "const foo = () => (((bar = 123), 10));", env: { es6: true } }
6367
],
6468

6569
// Examples of code that should trigger the rule

0 commit comments

Comments
 (0)