Sha256: befa29937be024759630089b9a4906dc3f3b48ff5b2706b32faa75cbf4cbce5a
Contents?: true
Size: 1.04 KB
Versions: 13
Compression:
Stored size: 1.04 KB
Contents
import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils'; import reducer, { initialState } from '../ApplicationInstanceReportReducer'; import { successState, initApplicationInstanceReportPayload, setActiveHostPayload, } from '../__fixtures__/applicationInstanceReportReducer.fixtures'; import { APPLICATION_INSTANCE_REPORT_INIT, APPLICATION_INSTANCE_REPORT_SET_ACTIVE_HOST, } from '../ApplicationInstanceReportConstants'; const fixtures = { 'should return initial state': { state: initialState, action: { type: undefined, payload: {}, }, }, 'should initialize component': { state: initialState, action: { type: APPLICATION_INSTANCE_REPORT_INIT, payload: initApplicationInstanceReportPayload, }, }, 'should set active host': { state: successState, action: { type: APPLICATION_INSTANCE_REPORT_SET_ACTIVE_HOST, payload: setActiveHostPayload, }, }, }; describe('ApplicationInstanceReport', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
13 entries across 13 versions & 1 rubygems