Sha256: 96d81fd80dcdfc363638b5e948feefbfeee97ed8a7f0f1c6627e93ccfa2257f1
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils'; import reducer, { initialState } from '../ApplicationDefinitionImportReducer'; import { editState, initApplicationDefinitionImportPayload, changeEditServicePayload, } from '../__fixtures__/applicationDefinitionImportReducer.fixtures'; import { APPLICATION_DEFINITION_IMPORT_INIT, APPLICATION_DEFINITION_IMPORT_SERVICE_EDIT_CHANGE, } 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
2 entries across 2 versions & 1 rubygems