Sha256: 97f64d69710b426feb66d5625b04e7012ca214bc302c1239f123bd8969960f6c
Contents?: true
Size: 951 Bytes
Versions: 15
Compression:
Stored size: 951 Bytes
Contents
import { testReducerSnapshotWithFixtures } from '../../../../move_to_pf/test-utils/testHelpers'; import reducer from '../ModuleStreamDetailsReducer'; import { MODULE_STREAM_DETAILS_REQUEST, MODULE_STREAM_DETAILS_SUCCESS, MODULE_STREAM_DETAILS_FAILURE, } from '../ModuleStreamDetailsConstants'; const fixtures = { 'should return the initial state': {}, 'should handle MODULE_STREAM_DETAILS_REQUEST': { action: { type: MODULE_STREAM_DETAILS_REQUEST, }, }, 'should handle MODULE_STREAM_DETAILS_SUCCESS': { action: { type: MODULE_STREAM_DETAILS_SUCCESS, payload: { results: { data: { id: 1 } }, }, }, }, 'should handle MODULE_STREAM_DETAILS_FAILURE': { action: { type: MODULE_STREAM_DETAILS_FAILURE, payload: new Error('things have gone terribly wrong'), }, }, }; describe('ModuleStreamDetails reducer', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
15 entries across 15 versions & 1 rubygems