Skip to content

Commit

Permalink
chore: add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
akulsr0 committed May 7, 2024
1 parent aa0910d commit 21ba4c5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/lib/rules/prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -4191,6 +4191,19 @@ ruleTester.run('prop-types', rule, {
}
`,
features: ['types'],
},
{
code: `
import React from 'react';
type TDelIconProps = React.HTMLProps<HTMLDivElement>;
const DelIcon: React.FC<TDelIconProps> = ({className, ...rest}) => (
<div className={classNames('del flex-center', className)} {...rest}>
<i className="iconfont icon-del f12" />
</div>
);
`,
features: ['types'],
}
)),

Expand Down

0 comments on commit 21ba4c5

Please sign in to comment.