Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 3c2400d

Browse files
committed
test(avatar+avatar-group): add comments for the future and one tick is enough
1 parent 97807ad commit 3c2400d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/chakra-ui-core/src/CAvatar/tests/CAvatar.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const renderComponent = (props) => {
3333
it('should render correctly', async () => {
3434
const { asFragment } = renderComponent()
3535

36-
await waitMs(1) // wait for img.onsuccess to be called.
36+
await waitMs() // wait for img.onsuccess to be called.
3737

3838
expect(asFragment()).toMatchSnapshot()
3939
})
@@ -50,7 +50,7 @@ it('Avatar with AvatarBadge renders correctly', async () => {
5050
`
5151
})
5252

53-
await waitMs(1) // wait for img.onsuccess to be called.
53+
await waitMs() // wait for img.onsuccess to be called.
5454

5555
expect(asFragment()).toMatchSnapshot()
5656
})

packages/chakra-ui-core/src/CAvatarGroup/tests/CAvatarGroup.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const renderComponent = (props) => {
5151
it('should render correctly', async () => {
5252
const { asFragment } = renderComponent()
5353

54-
await waitMs(1)
54+
await waitMs() // wait for img.onsuccess to be called.
5555

5656
expect(asFragment()).toMatchSnapshot()
5757
})

0 commit comments

Comments
 (0)