Skip to content

Commit

Permalink
Chore: Add tests to cover default object options in comma-dangle (#12627
Browse files Browse the repository at this point in the history
)
  • Loading branch information
yeonjuan authored and kaicataldo committed Dec 4, 2019
1 parent 6e36d12 commit 19194ce
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/lib/rules/comma-dangle.js
Expand Up @@ -359,6 +359,16 @@ ruleTester.run("comma-dangle", rule, {
},

// trailing comma in functions
{
code: "function foo(a) {} ",
options: [{}],
parserOptions: { ecmaVersion: 8 }
},
{
code: "foo(a)",
options: [{}],
parserOptions: { ecmaVersion: 8 }
},
{
code: "function foo(a) {} ",
options: [{ functions: "never" }],
Expand Down

0 comments on commit 19194ce

Please sign in to comment.