Skip to content

Commit

Permalink
Remove failing test for renamed React import
Browse files Browse the repository at this point in the history
It's a minor corner case, and removing it allows the major issue to be
resolved. If it's really necessary to handle that corner case, I suggest
creating a new issue to track just that case.
  • Loading branch information
brettdh authored and ljharb committed Feb 1, 2018
1 parent ec01d9a commit d318e52
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/lib/rules/no-typos.js
Original file line number Diff line number Diff line change
Expand Up @@ -980,17 +980,5 @@ ruleTester.run('no-typos', rule, {
}, {
message: 'Typo in declared prop type: objectof'
}]
}, {
code: `
import RealReactDifferentName from "react"
Component.propTypes = {
b: RealReactDifferentName.PropTypes.STRING,
}
`,
parser: 'babel-eslint',
parserOptions: parserOptions,
errors: [{
message: 'Typo in prop type chain qualifier: STRING'
}]
}]
});

0 comments on commit d318e52

Please sign in to comment.