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 43a92cb commit 668c9a5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tests/src/rules/newline-after-import.js
Expand Up @@ -430,8 +430,19 @@ ruleTester.run('newline-after-import', require('rules/newline-after-import'), {
parser: require.resolve('babel-eslint'),
},
{
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 {}`,
code: `
// issue 1784
import { map } from 'rxjs/operators';
@Component({})
export class Test {}
`,
output: `
// issue 1784
import { map } from 'rxjs/operators';
@Component({})
export class Test {}
`,
errors: [
{
line: 2,
Expand Down

0 comments on commit 668c9a5

Please sign in to comment.