Skip to content

Commit

Permalink
[no-unused-prop-types] test from #933
Browse files Browse the repository at this point in the history
  • Loading branch information
DianaSuvorova committed Aug 5, 2017
1 parent 95acd93 commit 15d0f74
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/lib/rules/no-unused-prop-types.js
Expand Up @@ -2012,6 +2012,23 @@ ruleTester.run('no-unused-prop-types', rule, {
'}'
].join('\n'),
parser: 'babel-eslint'
}, {
// issue #933
code: [
'type Props = {',
' onMouseOver: Function,',
' onClick: Function,',
'};',

'const MyComponent = (props: Props) => (',
'<div>',
' <button onMouseOver={() => props.onMouseOver()} />',
' <button onClick={() => props.onClick()} />',
'</div>',
');'
].join('\n'),
parser: 'babel-eslint',
options: [{skipShapeProps: false}]
}
],

Expand Down

0 comments on commit 15d0f74

Please sign in to comment.