From fffd0ee7db8a8e8b4235365ac30ca685c6524b1e Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Tue, 23 Apr 2024 09:59:52 +0800 Subject: [PATCH] fix: unit test Signed-off-by: SuZhou-Joe --- src/plugins/workspace/public/utils.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/workspace/public/utils.test.ts b/src/plugins/workspace/public/utils.test.ts index 8a3567cf7e56..5471abace56d 100644 --- a/src/plugins/workspace/public/utils.test.ts +++ b/src/plugins/workspace/public/utils.test.ts @@ -176,7 +176,7 @@ describe('workspace utils: isAppAccessibleInWorkspace', () => { mount: jest.fn(), workspaceAvailability: WorkspaceAvailability.insideWorkspace, }, - { id: 'workspace_id', name: 'workspace name', features: [] } + { id: 'workspace_id', name: 'workspace name', features: ['home'] } ) ).toBe(true); }); @@ -191,7 +191,7 @@ describe('workspace utils: isAppAccessibleInWorkspace', () => { // eslint-disable-next-line no-bitwise WorkspaceAvailability.insideWorkspace | WorkspaceAvailability.outsideWorkspace, }, - { id: 'workspace_id', name: 'workspace name', features: [] } + { id: 'workspace_id', name: 'workspace name', features: ['home'] } ) ).toBe(true); });