Skip to content

Commit 7a975a9

Browse files
committed
[Tests] prop-types: add passing test
Closes #1027
1 parent af468b1 commit 7a975a9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/lib/rules/prop-types.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3703,6 +3703,21 @@ ruleTester.run('prop-types', rule, {
37033703
37043704
Foo.baz = 'hi'
37053705
`,
3706+
},
3707+
3708+
{
3709+
code: `
3710+
type Props = {
3711+
'data-hover': string
3712+
}
3713+
3714+
function MyComponent({
3715+
'data-hover': dataHover
3716+
}: Props) {
3717+
return <span data-hover={dataHover} />
3718+
}
3719+
`,
3720+
features: ['types'],
37063721
}
37073722
)),
37083723

0 commit comments

Comments
 (0)