Skip to content

Commit

Permalink
increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ljqx committed Nov 19, 2018
1 parent 795eaff commit 7245889
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/src/rules/extensions.js
Expand Up @@ -330,6 +330,22 @@ ruleTester.run('extensions', rule, {
options: [ 'never', {ignorePackages: true} ],
}),

test({
code: `
import foo from './foo.js'
import bar from './bar.json'
import Component from './Component.jsx'
`,
errors: [
{
message: 'Unexpected use of file extension "jsx" for "./Component.jsx"',
line: 4,
column: 31,
},
],
options: [ 'always', {pattern: {jsx: 'never'}} ],
}),

// export (#964)
test({
code: [
Expand Down

0 comments on commit 7245889

Please sign in to comment.