Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Oct 18, 2019
1 parent 003d6fb commit 67d5810
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/prevent-abbreviations.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ const extendedOptions = [{
}
}];

const noCheckShorthandImportsOptions = [{ checkShorthandImports: false }]
const noCheckDefaultAndNamespaceImports = [{ checkDefaultAndNamespaceImports: false }]
const noCheckShorthandImportsOptions = [{checkShorthandImports: false}];
const noCheckDefaultAndNamespaceImports = [{checkDefaultAndNamespaceImports: false}];

const customOptions = [{
checkProperties: true,
Expand Down Expand Up @@ -238,7 +238,7 @@ ruleTester.run('prevent-abbreviations', rule, {
{
code: 'foo();',
filename: 'err/http-error.js'
},
}
],

invalid: [
Expand Down Expand Up @@ -1101,8 +1101,6 @@ moduleRuleTester.run('prevent-abbreviations', rule, {
'const {err} = foo',
'function f({err}) {}',



// Option checkDefaultAndNamespaceImports: false
{
code: 'const err = require("err")',
Expand Down Expand Up @@ -1169,7 +1167,7 @@ moduleRuleTester.run('prevent-abbreviations', rule, {
{
code: 'import { default as foo, err } from "./err"',
options: noCheckShorthandImportsOptions
},
}
],

invalid: [
Expand Down

0 comments on commit 67d5810

Please sign in to comment.