Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabricevladimir committed Jan 22, 2024
1 parent 59ea30e commit 43b2d8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/avatars/avatarIcon/avatarIcon.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { AvatarIcon, type IAvatarIconProps } from './avatarIcon';

describe('<AvatarIcon /> component', () => {
const createTestComponent = (props?: Partial<IAvatarIconProps>) => {
const completeProps: IAvatarIconProps = { ...props, icon: IconType.ADD };
const completeProps: IAvatarIconProps = { icon: IconType.ADD, ...props };

return <AvatarIcon {...completeProps} />;
};

it('renders the AvatarIcon component', () => {
render(createTestComponent({ icon: IconType.APP_FINANCE }));
expect(screen.getByTestId(IconType.ADD)).toBeInTheDocument();
expect(screen.getByTestId(IconType.APP_FINANCE)).toBeInTheDocument();
});
});

0 comments on commit 43b2d8e

Please sign in to comment.