Skip to content

Commit

Permalink
Fix icon mock in AdhocFilterOption test
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Feb 1, 2023
1 parent f80125f commit b4c2371
Showing 1 changed file with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,8 @@ import AdhocFilterOption, { AdhocFilterOptionProps } from '.';

jest.mock('src/components/Icons/Icon', () => ({
__esModule: true,
default: ({
fileName,
role,
iconColor,
...rest
}: {
fileName: string;
role: string;
iconColor: string;
}) => (
<span
role={role ?? 'img'}
aria-label={fileName.replace('_', '-')}
// @ts-ignore
iconcolor={iconColor ?? 'green'}
{...rest}
/>
default: ({ fileName, role }: { fileName: string; role: string }) => (
<span role={role ?? 'img'} aria-label={fileName.replace('_', '-')} />
),
StyledIcon: () => <span />,
}));
Expand Down

0 comments on commit b4c2371

Please sign in to comment.