Skip to content

Commit

Permalink
resolves #1784
Browse files Browse the repository at this point in the history
  • Loading branch information
yonatan.liling committed Feb 2, 2021
1 parent 43a92cb commit efc4ef5
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 efc4ef5

Please sign in to comment.