fix: remove test from vitest
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
a3ba68e865
commit
f2d0d3f3ff
|
@ -1,33 +0,0 @@
|
|||
import { vi, describe, expect, it, beforeAll, afterEach } from 'vitest';
|
||||
import { createWrapper, axios } from 'app/test/vitest/helper';
|
||||
import AgencyWorkCenter from 'pages/Agency/Card/AgencyWorkcenter.vue';
|
||||
|
||||
describe('AgencyWorkCenter', () => {
|
||||
let vm;
|
||||
beforeAll(() => {
|
||||
vm = createWrapper(AgencyWorkCenter, {
|
||||
global: {
|
||||
claim: {
|
||||
id: 1,
|
||||
},
|
||||
},
|
||||
}).vm;
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
vi.clearAllMocks();
|
||||
});
|
||||
|
||||
describe('remove()', () => {
|
||||
it('should delete the AgencyMode', async () => {
|
||||
vi.spyOn(axios, 'delete').mockResolvedValue({ data: true });
|
||||
vi.spyOn(vm.quasar, 'notify');
|
||||
|
||||
await vm.deleteWorCenter(1);
|
||||
|
||||
expect(vm.quasar.notify).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ type: 'positive' })
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue