Skip to content

Commit 24402fb

Browse files
committed
[Tests] prop-types: add passing test
Closes #3011
1 parent c1c4143 commit 24402fb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/lib/rules/prop-types.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3986,6 +3986,17 @@ ruleTester.run('prop-types', rule, {
39863986
};
39873987
`,
39883988
features: ['types'],
3989+
},
3990+
{
3991+
code: `
3992+
<MyComponent
3993+
options={{
3994+
tabBarIcon: ({ color, size }) => (
3995+
<Icon name="dumbbell" size={size} color={color} />
3996+
)
3997+
}}
3998+
/>
3999+
`,
39894000
}
39904001
)),
39914002

0 commit comments

Comments
 (0)