Skip to content

Commit

Permalink
Add a test to ensure to fix #249
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Oct 16, 2015
1 parent 9c42ae8 commit 2fb23a9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/lib/rules/forbid-prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,21 @@ ruleTester.run('forbid-prop-types', rule, {
classes: true,
jsx: true
}
}, {
code: [
'class First extends React.Component {',
' render() {',
' return <div />;',
' }',
'}',
'First.propTypes = {',
' elem: PropTypes.instanceOf(HTMLElement)',
'};'
].join('\n'),
ecmaFeatures: {
classes: true,
jsx: true
}
}, {
code: [
'class Hello extends React.Component {',
Expand Down

0 comments on commit 2fb23a9

Please sign in to comment.