refs #5357 beforeEach
gitea/salix-front/pipeline/head There was a failure building this commit
Details
gitea/salix-front/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
a969fb44f8
commit
28d844ab3d
|
@ -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 { createWrapper, axios } from 'app/test/vitest/helper';
|
||||||
import VnLog from 'src/components/common/VnLog.vue';
|
import VnLog from 'src/components/common/VnLog.vue';
|
||||||
|
|
||||||
|
@ -10,9 +10,12 @@ describe('VnLog', () => {
|
||||||
model: "Claim",
|
model: "Claim",
|
||||||
},
|
},
|
||||||
}).vm;
|
}).vm;
|
||||||
vi.spyOn(axios, 'get').mockResolvedValue({ data: true });
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
beforeEach(()=>{
|
||||||
|
vi.spyOn(axios, 'get').mockResolvedValue({ data: true });
|
||||||
|
})
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
vi.clearAllMocks();
|
vi.clearAllMocks();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue