diff --git a/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetailsActions.test.js b/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetailsActions.test.js index e9c4ae9c4..9910ba994 100644 --- a/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetailsActions.test.js +++ b/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetailsActions.test.js @@ -1,15 +1,10 @@ import { testActionSnapshotWithFixtures } from '@theforeman/test'; -import { API } from 'foremanReact/redux/API'; import { taskReloadStop, taskReloadStart, cancelStep, } from '../TaskDetailsActions'; -jest.mock('foremanReact/redux/API'); - -API.post.mockImplementation(async () => ({ data: 'some-data' })); - const fixtures = { 'should start reload': () => taskReloadStart(1), 'should stop reload': () => taskReloadStop(),