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

This commit is contained in:
Alexandre Riera 2023-04-18 14:57:26 +02:00
parent 6fcefc8df1
commit a969fb44f8
1 changed files with 2 additions and 2 deletions

View File

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