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 committed Jun 28, 2024
1 parent 124e9c6 commit c870d53
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 c870d53

Please sign in to comment.