From 7e7154525dc06d5062e992e592001f781536360a Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 22 Nov 2023 10:08:51 +0100 Subject: [PATCH] refs #5835 fix front test --- .../__tests__/pages/InvoiceIn/InvoiceInIntrastat.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/vitest/__tests__/pages/InvoiceIn/InvoiceInIntrastat.spec.js b/test/vitest/__tests__/pages/InvoiceIn/InvoiceInIntrastat.spec.js index 1622bf59e..55ca19d71 100644 --- a/test/vitest/__tests__/pages/InvoiceIn/InvoiceInIntrastat.spec.js +++ b/test/vitest/__tests__/pages/InvoiceIn/InvoiceInIntrastat.spec.js @@ -6,15 +6,15 @@ describe('InvoiceInIntrastat', () => { let vm; beforeAll(() => { - vi.spyOn(axios, 'get').mockResolvedValue({ data: [{}] }); vm = createWrapper(InvoiceInIntrastat, { global: { - stubs: [], + stubs: ['vnPaginate'], mocks: { fetch: vi.fn(), }, }, }).vm; + vi.spyOn(axios, 'get').mockResolvedValue({ data: [{}] }); }); describe('getTotal()', () => {