From 8ce62935e72ab9dae4f2991d6b2cc10616856a24 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Tue, 22 Sep 2020 18:07:36 +0900 Subject: [PATCH] Chore: Move comment to make tests more organized --- tests/lib/rules/getter-return.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib/rules/getter-return.js b/tests/lib/rules/getter-return.js index 7d7cce078ae..c4092d86d2d 100644 --- a/tests/lib/rules/getter-return.js +++ b/tests/lib/rules/getter-return.js @@ -218,11 +218,11 @@ ruleTester.run("getter-return", rule, { }, { code: "Object.defineProperty(foo, \"bar\", { get: function (){if(bar) {return true;}}});", errors: [{ messageId: "expectedAlways" }] }, { code: "Object.defineProperty(foo, \"bar\", { get: function (){ ~function () { return true; }()}});", errors: [{ messageId: "expected" }] }, + + // option: {allowImplicit: true} { code: "Object.defineProperties(foo, { bar: { get: function () {}} });", options, errors: [{ messageId: "expected" }] }, { code: "Object.defineProperties(foo, { bar: { get: function (){if(bar) {return true;}}}});", options, errors: [{ messageId: "expectedAlways" }] }, { code: "Object.defineProperties(foo, { bar: { get: function () {~function () { return true; }()}} });", options, errors: [{ messageId: "expected" }] }, - - // option: {allowImplicit: true} { code: "Object.defineProperty(foo, \"bar\", { get: function (){}});", options, errors: [{ messageId: "expected" }] }, // Optional chaining