From 19194cec724e016df02376bbeae31171be6f0bdf Mon Sep 17 00:00:00 2001 From: YeonJuan Date: Thu, 5 Dec 2019 08:14:52 +0900 Subject: [PATCH] Chore: Add tests to cover default object options in comma-dangle (#12627) --- tests/lib/rules/comma-dangle.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/lib/rules/comma-dangle.js b/tests/lib/rules/comma-dangle.js index 9225b43419d..3a4f0aa735a 100644 --- a/tests/lib/rules/comma-dangle.js +++ b/tests/lib/rules/comma-dangle.js @@ -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" }],