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 4, 2017
1 parent cbd4d74 commit 12087bf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/lib/rules/no-unused-prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -2069,6 +2069,22 @@ 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'
}
],

Expand Down

0 comments on commit 12087bf

Please sign in to comment.