diff --git a/tests/lib/rules/prefer-exact-props.js b/tests/lib/rules/prefer-exact-props.js index bc1cd4454f..49286ccf23 100644 --- a/tests/lib/rules/prefer-exact-props.js +++ b/tests/lib/rules/prefer-exact-props.js @@ -67,6 +67,23 @@ ruleTester.run('prefer-exact-props', rule, { } `, parser: 'babel-eslint' + }, { + code: ` + type Props = {| + foo: string + |} + function Component(props: Props) { + return
; + } + `, + parser: 'babel-eslint' + }, { + code: ` + function Component(props: {| foo : string |}) { + return
; + } + `, + parser: 'babel-eslint' }, { code: ` type Props = {}