fix: remove test from vitest
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Pablo Natek 2024-04-25 13:09:54 +02:00
parent a3ba68e865
commit f2d0d3f3ff
1 changed files with 0 additions and 33 deletions

View File

@ -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' })
);
});
});
});