Skip to content

Commit

Permalink
Add another valid test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Seminck committed Jul 1, 2017
1 parent 82facc8 commit afd6ea0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/lib/rules/no-typos.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,20 @@ ruleTester.run('no-typos', rule, {
'First["DEFAULT" + "PROPS"] = {};'
].join('\n'),
parserOptions: parserOptions
}, {
code: [ // This case is currently not supported
'const propTypes = "PROPTYPES"',
'const contextTypes = "CONTEXTTYPES"',
'const childContextTypes = "CHILDCONTEXTTYPES"',
'const defautProps = "DEFAULTPROPS"',
'',
'class First extends React.Component {}',
'First[propTypes] = {};',
'First[contextTypes] = {};',
'First[childContextTypes] = {};',
'First[defautProps] = {};'
].join('\n'),
parserOptions: parserOptions
}],

invalid: [{
Expand Down

0 comments on commit afd6ea0

Please sign in to comment.