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()', () => {