From 56f408599427e9a7cbb374314dcdfa3936975617 Mon Sep 17 00:00:00 2001 From: Jan Ackermann Date: Fri, 20 Oct 2023 14:33:51 +0200 Subject: [PATCH] Fix types --- packages/web-pkg/src/apps/types.ts | 3 ++- .../web-test-helpers/src/mocks/useGetMatchingSpaceMock.ts | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/web-pkg/src/apps/types.ts b/packages/web-pkg/src/apps/types.ts index 73144e60c89..776be085316 100644 --- a/packages/web-pkg/src/apps/types.ts +++ b/packages/web-pkg/src/apps/types.ts @@ -54,7 +54,8 @@ export type AppConfigObject = Record export interface ApplicationMenuItem { enabled: () => boolean - priority: number + priority: number, + openAsEditor?: boolean } /** ApplicationInformation describes required information of an application */ diff --git a/packages/web-test-helpers/src/mocks/useGetMatchingSpaceMock.ts b/packages/web-test-helpers/src/mocks/useGetMatchingSpaceMock.ts index a9f79ed94fa..c25583d5ad0 100644 --- a/packages/web-test-helpers/src/mocks/useGetMatchingSpaceMock.ts +++ b/packages/web-test-helpers/src/mocks/useGetMatchingSpaceMock.ts @@ -1,6 +1,7 @@ import { mock } from 'jest-mock-extended' import { Resource, SpaceResource } from '../../../web-client/src' import { useGetMatchingSpace } from '../../../web-pkg' +import { PersonalSpaceResource } from '../../../web-client/src/helpers' export const useGetMatchingSpaceMock = ( options: Partial> = {} @@ -12,6 +13,9 @@ export const useGetMatchingSpaceMock = ( getMatchingSpace(resource: Resource) { return mock() }, + getPersonalSpace() { + return mock() + }, isResourceAccessible({ space, path }) { return false },