Skip to content

Commit 19194ce

Browse files
yeonjuanKai Cataldo
authored andcommitted
Chore: Add tests to cover default object options in comma-dangle (#12627)
1 parent 6e36d12 commit 19194ce

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/lib/rules/comma-dangle.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,16 @@ ruleTester.run("comma-dangle", rule, {
359359
},
360360

361361
// trailing comma in functions
362+
{
363+
code: "function foo(a) {} ",
364+
options: [{}],
365+
parserOptions: { ecmaVersion: 8 }
366+
},
367+
{
368+
code: "foo(a)",
369+
options: [{}],
370+
parserOptions: { ecmaVersion: 8 }
371+
},
362372
{
363373
code: "function foo(a) {} ",
364374
options: [{ functions: "never" }],

0 commit comments

Comments
 (0)