Skip to content

Commit

Permalink
Fix the wrong reference
Browse files Browse the repository at this point in the history
Signed-off-by: yubonluo <yubonluo@amazon.com>
  • Loading branch information
yubonluo committed Apr 12, 2024
1 parent 27d95fe commit acfb166
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/workspace/server/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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({}),
Expand Down

0 comments on commit acfb166

Please sign in to comment.