Skip to content

Commit 43c7d69

Browse files
committed
fix: default avatar icon size
Signed-off-by: Adam Setch <[email protected]>
1 parent ef013bf commit 43c7d69

File tree

2 files changed

+206
-2
lines changed

2 files changed

+206
-2
lines changed

src/components/icons/AvatarIcon.test.tsx

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('components/icons/AvatarIcon.tsx', () => {
3737
expect(tree).toMatchSnapshot();
3838
});
3939

40-
it('should render default icon when no url', () => {
40+
it('should render default extra small icon when no url', () => {
4141
const props: IAvatarIcon = {
4242
defaultIcon: MarkGithubIcon,
4343
title: 'test',
@@ -47,4 +47,26 @@ describe('components/icons/AvatarIcon.tsx', () => {
4747
const tree = render(<AvatarIcon {...props} />);
4848
expect(tree).toMatchSnapshot();
4949
});
50+
51+
it('should render default small icon when no url', () => {
52+
const props: IAvatarIcon = {
53+
defaultIcon: MarkGithubIcon,
54+
title: 'test',
55+
url: null,
56+
size: Size.SMALL,
57+
};
58+
const tree = render(<AvatarIcon {...props} />);
59+
expect(tree).toMatchSnapshot();
60+
});
61+
62+
it('should render default medium icon when no url', () => {
63+
const props: IAvatarIcon = {
64+
defaultIcon: MarkGithubIcon,
65+
title: 'test',
66+
url: null,
67+
size: Size.MEDIUM,
68+
};
69+
const tree = render(<AvatarIcon {...props} />);
70+
expect(tree).toMatchSnapshot();
71+
});
5072
});

src/components/icons/__snapshots__/AvatarIcon.test.tsx.snap

Lines changed: 183 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)