From bb6761f7b506b93743790d5ffbd0017ebb082848 Mon Sep 17 00:00:00 2001 From: MariaAga Date: Fri, 28 Jun 2024 09:26:19 +0100 Subject: [PATCH] Fixes #37608 - cleanup TaskDetailsActions.test.js api mock --- .../TaskDetails/__tests__/TaskDetailsActions.test.js | 5 ----- 1 file changed, 5 deletions(-) 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(),