|
3 | 3 | * SPDX-License-Identifier: AGPL-3.0-or-later |
4 | 4 | */ |
5 | 5 |
|
6 | | -import { beforeAll, beforeEach, describe, expect, it, vi } from 'vitest' |
| 6 | +import { beforeEach, describe, expect, it, vi } from 'vitest' |
7 | 7 | import { shallowMount } from '@vue/test-utils' |
8 | 8 | import type { VueWrapper } from '@vue/test-utils' |
9 | 9 | import { createPinia, setActivePinia } from 'pinia' |
10 | 10 | import axios from '@nextcloud/axios' |
11 | 11 | import type { useFilesStore as useFilesStoreType } from '../../../store/files.js' |
12 | | -let RequestSignatureTab: unknown |
13 | | -let useFilesStore: typeof import('../../../store/files.js').useFilesStore |
| 12 | +import RequestSignatureTab from '../../../components/RightSidebar/RequestSignatureTab.vue' |
| 13 | +import { useFilesStore } from '../../../store/files.js' |
14 | 14 | import { FILE_STATUS } from '../../../constants.js' |
15 | 15 |
|
16 | 16 | const { generateUrlMock } = vi.hoisted(() => ({ |
@@ -80,11 +80,6 @@ describe('RequestSignatureTab - Critical Business Rules', () => { |
80 | 80 | let wrapper: VueWrapper<any> |
81 | 81 | let filesStore: ReturnType<typeof useFilesStoreType> |
82 | 82 |
|
83 | | - beforeAll(async () => { |
84 | | - RequestSignatureTab = (await import('../../../components/RightSidebar/RequestSignatureTab.vue')).default |
85 | | - ;({ useFilesStore } = await import('../../../store/files.js')) |
86 | | - }) |
87 | | - |
88 | 83 | const updateFile = async (patch: Record<string, unknown>) => { |
89 | 84 | const current = filesStore.files[1] || { id: 1 } |
90 | 85 | const hasSigners = Object.prototype.hasOwnProperty.call(patch, 'signers') |
|
0 commit comments