refs #5357 beforeEach
gitea/salix-front/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alexandre Riera 2023-04-18 15:03:50 +02:00
parent a969fb44f8
commit 28d844ab3d
1 changed files with 5 additions and 2 deletions

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();
});