Skip to content

Commit

Permalink
Update tests/src/rules/newline-after-import.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
lilling and ljharb committed Feb 2, 2021
1 parent 7839cb3 commit 43a92cb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/src/rules/newline-after-import.js
Expand Up @@ -432,11 +432,13 @@ ruleTester.run('newline-after-import', require('rules/newline-after-import'), {
{
code: `// issue 1784\nimport { map } from 'rxjs/operators';\n@Component({})\nexport class Test {}`,
output: `// issue 1784\nimport { map } from 'rxjs/operators';\n\n@Component({})\nexport class Test {}`,
errors: [ {
line: 2,
column: 1,
message: IMPORT_ERROR_MESSAGE,
} ],
errors: [
{
line: 2,
column: 1,
message: IMPORT_ERROR_MESSAGE,
},
],
parserOptions: { sourceType: 'module' },
parser: require.resolve('babel-eslint'),
},
Expand Down

0 comments on commit 43a92cb

Please sign in to comment.