From acfb16661c134fc7fb690dcb1e9bf3ace694348f Mon Sep 17 00:00:00 2001 From: yubonluo Date: Fri, 12 Apr 2024 12:35:04 +0800 Subject: [PATCH] Fix the wrong reference Signed-off-by: yubonluo --- src/plugins/workspace/server/utils.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/workspace/server/utils.test.ts b/src/plugins/workspace/server/utils.test.ts index 44020a446f87..639dfb3963e5 100644 --- a/src/plugins/workspace/server/utils.test.ts +++ b/src/plugins/workspace/server/utils.test.ts @@ -16,7 +16,6 @@ import { import { getWorkspaceState } from '../../../core/server/utils'; import { AppPluginSetupDependencies } from './types'; import { Observable, of } from 'rxjs'; -import { error } from 'console'; describe('workspace utils', () => { const mockAuth = httpServiceMock.createAuth(); @@ -166,7 +165,7 @@ describe('workspace utils', () => { const applicationConfigMock = { getConfigurationClient: jest.fn().mockReturnValue({ getEntityConfig: jest.fn().mockImplementation(async (entity: string) => { - throw error; + throw new Error('Not found'); }), }), registerConfigurationClient: jest.fn().mockResolvedValue({}),