Sha256: 39274bd6db4a2508a5d7d641fa6669ebe4285549435a75d682c7a254e99592f5
Contents?: true
Size: 940 Bytes
Versions: 10
Compression:
Stored size: 940 Bytes
Contents
import { testReducerSnapshotWithFixtures } from '@theforeman/test'; import { FOREMAN_TASK_DETAILS_FETCH_TASK_SUCCESS, FOREMAN_TASK_DETAILS_STOP_POLLING, FOREMAN_TASK_DETAILS_START_POLLING, } from '../TaskDetailsConstants'; import reducer from '../TaskDetailsReducer'; const fixtures = { 'should return the initial state': {}, 'should handle FOREMAN_TASK_DETAILS_START_POLLING': { action: { type: FOREMAN_TASK_DETAILS_START_POLLING, payload: { timeoutId: 1 }, }, }, 'should handle FOREMAN_TASK_DETAILS_STOP_POLLING': { action: { type: FOREMAN_TASK_DETAILS_STOP_POLLING, payload: { timeoutId: 1 }, }, }, 'should handle FOREMAN_TASK_DETAILS_FETCH_TASK_SUCCESS': { action: { type: FOREMAN_TASK_DETAILS_FETCH_TASK_SUCCESS, payload: { data: 'some-payload' }, }, }, }; describe('TaskDetails - Reducer', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
10 entries across 10 versions & 1 rubygems