Skip to content

Commit

Permalink
Merge pull request #1343 from DianaSuvorova/unusedPropsFlow
Browse files Browse the repository at this point in the history
[no-unused-prop-types] test cases
  • Loading branch information
ljharb committed Aug 7, 2017
2 parents f9c22ef + 15d0f74 commit 1a622ea
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 1a622ea

Please sign in to comment.