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({}),