From f2d0d3f3ffc5419a5595335eef3c6b49942d440a Mon Sep 17 00:00:00 2001 From: pablone Date: Thu, 25 Apr 2024 13:09:54 +0200 Subject: [PATCH] fix: remove test from vitest --- .../pages/Agency/AgencyWorCenter.spec.js | 33 ------------------- 1 file changed, 33 deletions(-) delete mode 100644 test/vitest/__tests__/pages/Agency/AgencyWorCenter.spec.js 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' }) - ); - }); - }); -});