Skip to content

Commit

Permalink
null should be no transform in array context
Browse files Browse the repository at this point in the history
  • Loading branch information
selaux committed Apr 12, 2017
1 parent e30a2a7 commit e2f6c8d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/rules/match-exported.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,15 @@ ruleTester.run("lib/rules/match-exported with configuration", exportedRule, {
{ message: "Filename 'variableName' must match the exported and transformed name 'VariableName'.", column: 1, line: 1 }
]
},
{
code: camelCaseEs6,
filename: "VariableName.js",
parserOptions: { ecmaVersion: 6, sourceType: "module" },
options: [ [ null ] ],
errors: [
{ message: "Filename 'VariableName' must match the exported name 'variableName'.", column: 1, line: 1 }
]
},
{
code: camelCaseEs6,
filename: "variableName.js",
Expand Down

0 comments on commit e2f6c8d

Please sign in to comment.