diff --git a/packages/web-pkg/tests/unit/components/FilesList/ResourceTable.spec.ts b/packages/web-pkg/tests/unit/components/FilesList/ResourceTable.spec.ts index f54768ab20e..a51664d952b 100644 --- a/packages/web-pkg/tests/unit/components/FilesList/ResourceTable.spec.ts +++ b/packages/web-pkg/tests/unit/components/FilesList/ResourceTable.spec.ts @@ -36,6 +36,13 @@ vi.mock('../../../../src/composables/resources', async (importOriginal) => ({ useCanBeOpenedWithSecureView: vi.fn() })) +vi.mock('../../../../src/composables/actions/files', async (importOriginal) => ({ + ...(await importOriginal()), + useFileActions: vi.fn().mockReturnValue({ + getDefaultAction: vi.fn().mockReturnValue({ handler: vi.fn() }) + }) +})) + const router = { push: vi.fn(), afterEach: vi.fn(), @@ -267,7 +274,7 @@ const processingResourcesWithAllFields = [ } ] as IncomingShareResource[] -describe.skip('ResourceTable', () => { +describe('ResourceTable', () => { it('displays all known fields of the resources', () => { const { wrapper } = getMountedWrapper() for (const field of fields) {