Sha256: 1ca8c7aa311748ec48ec59bee510a0cc225e06bb591a9e6147f2987e4422f128
Contents?: true
Size: 671 Bytes
Versions: 65
Compression:
Stored size: 671 Bytes
Contents
import { testReducerSnapshotWithFixtures } from '@theforeman/test'; import { UPDATE_MODAL, CANCEL_MODAL, RESUME_SELECTED_MODAL, } from '../../../TasksTableConstants'; import reducer from '../ConfirmModalReducer'; const fixtures = { 'should return the initial state': {}, 'should handle UPDATE_MODAL to cancel': { action: { type: UPDATE_MODAL, payload: { modalID: CANCEL_MODAL }, }, }, 'should handle UPDATE_MODAL to resume': { action: { type: UPDATE_MODAL, payload: { modalID: RESUME_SELECTED_MODAL }, }, }, }; describe('ConfirmModalReducer reducer', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
65 entries across 65 versions & 1 rubygems