Skip to content

Commit

Permalink
UIE-204 Narrow Ajax Usage pt24
Browse files Browse the repository at this point in the history
- fixed lingering ajax mock reference
  • Loading branch information
msilva-broad committed Jan 31, 2025
1 parent 8012191 commit 883b5ed
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ import { asMockedFn, partial, renderHookInAct } from 'src/testing/test-utils';
import { useDeleteWorkspaceState } from 'src/workspaces/DeleteWorkspaceModal/state/useDeleteWorkspaceState';
import { AzureWorkspaceInfo, BaseWorkspace, GoogleWorkspaceInfo } from 'src/workspaces/utils';

type AjaxExports = typeof import('src/libs/ajax');
jest.mock('src/libs/ajax', (): AjaxExports => {
return {
...jest.requireActual('src/libs/ajax'),
Ajax: jest.fn(),
};
});
jest.mock('src/libs/ajax/leonardo/Apps');
jest.mock('src/libs/ajax/leonardo/Runtimes');
jest.mock('src/libs/ajax/workspaces/Workspaces');
Expand Down

0 comments on commit 883b5ed

Please sign in to comment.