Skip to content

Commit

Permalink
fix babel syntax errors in extensions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benmosher authored Apr 11, 2017
1 parent 82f796c commit 861765f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/src/rules/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ ruleTester.run('extensions', rule, {

test({
code: [
'import lib from "./bar"',
'import lib from "./bar.json"',
'import lib from "./bar.hbs"',
'import bar from "./bar"',
'import barjson from "./bar.json"',
'import barhbs from "./bar.hbs"',
].join('\n'),
options: [ 'always', { js: 'never', jsx: 'never' } ],
settings: { 'import/resolve': { 'extensions': [ '.js', '.jsx', '.json', '.hbs' ] } },
}),

test({
code: [
'import lib from "./bar.js"',
'import lib from "./package"',
'import bar from "./bar.js"',
'import pack from "./package"',
].join('\n'),
options: [ 'never', { js: 'always', json: 'never' } ],
settings: { 'import/resolve': { 'extensions': [ '.js', '.json' ] } },
Expand Down Expand Up @@ -145,9 +145,9 @@ ruleTester.run('extensions', rule, {

test({
code: [
'import lib from "./bar.js"',
'import lib from "./bar.json"',
'import lib from "./bar"',
'import barjs from "./bar.js"',
'import barjson from "./bar.json"',
'import barnone from "./bar"',
].join('\n'),
options: [ 'always', { json: 'always', js: 'never', jsx: 'never' } ],
settings: { 'import/resolve': { 'extensions': [ '.js', '.jsx', '.json' ] } },
Expand All @@ -162,9 +162,9 @@ ruleTester.run('extensions', rule, {

test({
code: [
'import lib from "./bar.js"',
'import lib from "./bar.json"',
'import lib from "./bar"',
'import barjs from "./bar.js"',
'import barjson from "./bar.json"',
'import barnone from "./bar"',
].join('\n'),
options: [ 'never', { json: 'always', js: 'never', jsx: 'never' } ],
settings: { 'import/resolve': { 'extensions': [ '.js', '.jsx', '.json' ] } },
Expand Down

0 comments on commit 861765f

Please sign in to comment.