From c341c0617089dfcf1b21965ac79806b9aa870877 Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 2 Dec 2024 10:36:30 +0100 Subject: [PATCH] fix: refs #6818 test --- test/vitest/__tests__/components/common/VnLinkPhone.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/vitest/__tests__/components/common/VnLinkPhone.spec.js b/test/vitest/__tests__/components/common/VnLinkPhone.spec.js index 8b59ed1dc..1505e32f7 100644 --- a/test/vitest/__tests__/components/common/VnLinkPhone.spec.js +++ b/test/vitest/__tests__/components/common/VnLinkPhone.spec.js @@ -7,8 +7,8 @@ describe('parsePhone filter', () => { vi.spyOn(axios, 'get').mockReturnValue({ data: { prefix: '34' } }); }); - it('no phone', () => { - const phone = parsePhone(null, '34'); + it('no phone', async () => { + const phone = await parsePhone(null, '34'); expect(phone).toBe(undefined); });