We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a11d70 commit b67573aCopy full SHA for b67573a
src/avatar/__tests__/avatar.test.tsx
@@ -43,7 +43,7 @@ describe('Avatar', () => {
43
const count = 8;
44
const { container } = render(<Avatar badgeProps={{ count, offset: [6, 6] }} icon={<UserIcon />} />);
45
expect(container.querySelector('.t-badge--basic')).toBeTruthy();
46
- expect(container.querySelector('.t-badge--basic').innerHTML.trim()).toBe(`${count}`);
+ expect(container.querySelector('.t-badge--basic > .t-badge__count').innerHTML.trim()).toBe(`${count}`);
47
});
48
49
it(': size', () => {
0 commit comments