Skip to content

Commit

Permalink
test(no-unused-prop-types): Add import test with Union
Browse files Browse the repository at this point in the history
  • Loading branch information
justinanastos committed Nov 24, 2017
1 parent 115e4b9 commit 78ec577
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/lib/rules/no-unused-prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,17 @@ ruleTester.run('no-unused-prop-types', rule, {
'}'
].join('\n'),
parser: 'babel-eslint'
}, {
code: [
'import type { FieldProps } from "redux-form"',
'',
'type Props = {',
'label: string,',
' type: string,',
' options: Array<SelectOption>',
'} & FieldProps'
].join('\n'),
parser: 'babel-eslint'
}, {
code: [
'Card.propTypes = {',
Expand Down

0 comments on commit 78ec577

Please sign in to comment.