Skip to content

Commit

Permalink
Revert "Omit children from IconProps"
Browse files Browse the repository at this point in the history
This reverts commit e1d07ca.
  • Loading branch information
thebinij committed May 18, 2023
1 parent cb57456 commit 6a93203
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ describe('AvatarIcon', () => {
<AvatarIcon
iconName={IconName.SwapHorizontal}
data-testid="avatar-icon"
children={undefined}
/>,
);
expect(getByTestId('avatar-icon')).toBeDefined();
Expand All @@ -28,11 +29,13 @@ describe('AvatarIcon', () => {
iconName={IconName.SwapHorizontal}
size={AvatarIconSize.Xs}
data-testid={AvatarIconSize.Xs}
children={undefined}
/>
<AvatarIcon
iconName={IconName.SwapHorizontal}
size={AvatarIconSize.Sm}
data-testid={AvatarIconSize.Sm}
children={undefined}
/>
<AvatarIcon
iconName={IconName.SwapHorizontal}
Expand Down Expand Up @@ -74,6 +77,7 @@ describe('AvatarIcon', () => {
iconName={IconName.SwapHorizontal}
className="mm-avatar-icon--test"
data-testid="classname"
children={undefined}
/>,
);
expect(getByTestId('classname')).toHaveClass('mm-avatar-icon--test');
Expand All @@ -84,6 +88,7 @@ describe('AvatarIcon', () => {
<AvatarIcon
iconName={IconName.SwapHorizontal}
iconProps={{ 'data-testid': 'avatar-icon' }}
children={undefined}
/>,
);

Expand All @@ -97,6 +102,7 @@ describe('AvatarIcon', () => {
color={IconColor.successDefault}
backgroundColor={BackgroundColor.successMuted}
data-testid="success"
children={undefined}
/>,
);

Expand Down

0 comments on commit 6a93203

Please sign in to comment.