fixes #5357 Convertir sección de histórico en componente reutilizable vnLog #48

Merged
alexandre merged 11 commits from 5357-vnLog-component into dev 2023-05-22 10:42:42 +00:00
1 changed files with 5 additions and 2 deletions
Showing only changes of commit 28d844ab3d - Show all commits

View File

@ -1,4 +1,4 @@
import { vi, describe, expect, it, beforeAll, afterEach } from 'vitest';
import { vi, describe, expect, it, beforeAll, afterEach, beforeEach } from 'vitest';
import { createWrapper, axios } from 'app/test/vitest/helper';
import VnLog from 'src/components/common/VnLog.vue';
@ -10,9 +10,12 @@ describe('VnLog', () => {
model: "Claim",
},
}).vm;
vi.spyOn(axios, 'get').mockResolvedValue({ data: true });
});
beforeEach(()=>{
vi.spyOn(axios, 'get').mockResolvedValue({ data: true });
})
afterEach(() => {
vi.clearAllMocks();
});