diff --git a/packages/components/countdown/__tests__/countdown.test.tsx b/packages/components/countdown/__tests__/countdown.test.tsx
index 9173394cda..fca095b282 100644
--- a/packages/components/countdown/__tests__/countdown.test.tsx
+++ b/packages/components/countdown/__tests__/countdown.test.tsx
@@ -20,8 +20,8 @@ describe('Countdown.vue', () => {
wrapper.unmount()
})
- it('render test', () => {
- wrapper = mount(() => (
+ it('render test', async () => {
+ wrapper = await mount(() => (
))
@@ -35,7 +35,7 @@ describe('Countdown.vue', () => {
['DD [days] HH [hours] mm:ss', '02 days 02 hours 02:02'],
['HH:mm:ss', '50:02:02'],
['HH:mm:ss:SSS', '50:02:02:002'],
- ])('should work with %s', (format, expected) => {
+ ])('should work with %s', async (format, expected) => {
const value = dayjs()
.add(2, 'd')
.add(2, 'h')
@@ -43,7 +43,7 @@ describe('Countdown.vue', () => {
.add(2, 's')
.add(2, 'ms')
- wrapper = mount(() => )
+ wrapper = await mount(() => )
expect(wrapper.find(CONTENT_CLASS).text()).toBe(expected)
})
diff --git a/packages/components/countdown/src/countdown.vue b/packages/components/countdown/src/countdown.vue
index d5f0299431..7e88f09df4 100644
--- a/packages/components/countdown/src/countdown.vue
+++ b/packages/components/countdown/src/countdown.vue
@@ -13,7 +13,7 @@