Skip to content

Commit

Permalink
test: revert removed test case to valid itmes
Browse files Browse the repository at this point in the history
  • Loading branch information
developer-bandi committed Jan 14, 2024
1 parent 9664fa1 commit 73de81c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/rules/newline-after-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 73de81c

Please sign in to comment.