Skip to content

Commit

Permalink
Fixes #37608 - cleanup TaskDetailsActions.test.js api mock
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga authored and adamruzicka committed Jun 28, 2024
1 parent ecf5e4f commit bb6761f
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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(),
Expand Down

0 comments on commit bb6761f

Please sign in to comment.