Skip to content

Commit 73de81c

Browse files
test: revert removed test case to valid itmes
1 parent 9664fa1 commit 73de81c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/src/rules/newline-after-import.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,11 @@ ruleTester.run('newline-after-import', require('rules/newline-after-import'), {
403403
code: `var foo = require('foo-module');\n\n\n/**\n * Test comment\n */\nvar foo = 'bar';`,
404404
options: [{ count: 2, considerComments: true }],
405405
},
406+
{
407+
code: `const foo = require('foo');\n\n\n// some random comment\nconst bar = function() {};`,
408+
options: [{ count: 2, exactCount: true, considerComments: true }],
409+
parserOptions: { ecmaVersion: 2015 },
410+
},
406411
),
407412

408413
invalid: [].concat(

0 commit comments

Comments
 (0)