From 73de81cbfe196ebf781a17d99193b9c5f46feae6 Mon Sep 17 00:00:00 2001 From: puki4416 Date: Sun, 14 Jan 2024 16:16:48 +0900 Subject: [PATCH] test: revert removed test case to valid itmes --- tests/src/rules/newline-after-import.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/src/rules/newline-after-import.js b/tests/src/rules/newline-after-import.js index 1c2dcf99f4..b78e891a35 100644 --- a/tests/src/rules/newline-after-import.js +++ b/tests/src/rules/newline-after-import.js @@ -403,6 +403,11 @@ ruleTester.run('newline-after-import', require('rules/newline-after-import'), { code: `var foo = require('foo-module');\n\n\n/**\n * Test comment\n */\nvar foo = 'bar';`, options: [{ count: 2, considerComments: true }], }, + { + code: `const foo = require('foo');\n\n\n// some random comment\nconst bar = function() {};`, + options: [{ count: 2, exactCount: true, considerComments: true }], + parserOptions: { ecmaVersion: 2015 }, + }, ), invalid: [].concat(