Sha256: ea988a8868988f9265b34d5fb7e860fc4626efc85275872dd89d1f5e8b1cb28b
Contents?: true
Size: 577 Bytes
Versions: 7
Compression:
Stored size: 577 Bytes
Contents
import { testActionSnapshotWithFixtures } from '@theforeman/test'; import API from 'foremanReact/API'; import { taskReloadStop, taskReloadStart, fetchTaskDetails, } from '../TaskDetailsActions'; jest.mock('foremanReact/API'); API.get.mockImplementation(async () => ({ data: 'some-data' })); const fixtures = { 'should start reload': () => taskReloadStart(1), 'should stop reload': () => taskReloadStop(2), 'should fetch-task-details and success': () => fetchTaskDetails(), }; describe('TaskDetails - Actions', () => testActionSnapshotWithFixtures(fixtures));
Version data entries
7 entries across 7 versions & 1 rubygems