Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAndBear committed Oct 20, 2023
1 parent a77cab1 commit 56f4085
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web-pkg/src/apps/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export type AppConfigObject = Record<string, any>

export interface ApplicationMenuItem {
enabled: () => boolean
priority: number
priority: number,
openAsEditor?: boolean
}

/** ApplicationInformation describes required information of an application */
Expand Down
Original file line number Diff line number Diff line change
@@ -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<ReturnType<typeof useGetMatchingSpace>> = {}
Expand All @@ -12,6 +13,9 @@ export const useGetMatchingSpaceMock = (
getMatchingSpace(resource: Resource) {
return mock<SpaceResource>()
},
getPersonalSpace() {
return mock<PersonalSpaceResource>()
},
isResourceAccessible({ space, path }) {
return false
},
Expand Down

0 comments on commit 56f4085

Please sign in to comment.