Sha256: 7327ae5a4d90fdf9c490d5b3ddff0500f33e828b058ed5c9f732b51d75d0b30f
Contents?: true
Size: 1.14 KB
Versions: 10
Compression:
Stored size: 1.14 KB
Contents
import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils'; import reducer, { initialState } from '../ApplicationDefinitionImportReducer'; import { successState, editState, initApplicationDefinitionImportPayload, changeEditServicePayload, } from '../__fixtures__/applicationDefinitionImportReducer.fixtures'; import { APPLICATION_DEFINITION_IMPORT_INIT, APPLICATION_DEFINITION_IMPORT_SERVICE_EDIT_CHANGE, APPLICATION_DEFINITION_IMPORT_SERVICE_EDIT_CANCEL, } from '../ApplicationDefinitionImportConstants'; const fixtures = { 'should return initial state': { state: initialState, action: { type: undefined, payload: {}, }, }, 'should initialize component': { state: initialState, action: { type: APPLICATION_DEFINITION_IMPORT_INIT, payload: initApplicationDefinitionImportPayload, }, }, 'should change edit service': { state: editState, action: { type: APPLICATION_DEFINITION_IMPORT_SERVICE_EDIT_CHANGE, payload: changeEditServicePayload, }, }, }; describe('ApplicationDefinitionImportReducer', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
10 entries across 10 versions & 1 rubygems