Skip to content

Commit

Permalink
[Tests] prop-types: add passing test
Browse files Browse the repository at this point in the history
Closes #3011
  • Loading branch information
ljharb committed Feb 22, 2022
1 parent c1c4143 commit 24402fb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/lib/rules/prop-types.js
Expand Up @@ -3986,6 +3986,17 @@ ruleTester.run('prop-types', rule, {
};
`,
features: ['types'],
},
{
code: `
<MyComponent
options={{
tabBarIcon: ({ color, size }) => (
<Icon name="dumbbell" size={size} color={color} />
)
}}
/>
`,
}
)),

Expand Down

0 comments on commit 24402fb

Please sign in to comment.