diff --git a/test/vitest/__tests__/pages/Agency/AgencyWorCenter.spec.js b/test/vitest/__tests__/pages/Agency/AgencyWorCenter.spec.js deleted file mode 100644 index 965af14c4..000000000 --- a/test/vitest/__tests__/pages/Agency/AgencyWorCenter.spec.js +++ /dev/null @@ -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' }) - ); - }); - }); -});