Sha256: a8039c3d5303c398056536430b010cd779e58e4a4102c87d04d39a304425a188
Contents?: true
Size: 781 Bytes
Versions: 160
Compression:
Stored size: 781 Bytes
Contents
import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils'; import { SYSTEM_STATUSES_FAILURE, SYSTEM_STATUSES_SUCCESS, SYSTEM_STATUSES_REQUEST, } from '../SystemStatusesConsts'; import reducer from '../SystemStatusesReducer'; import { services } from './SystemStatuses.fixtures'; const fixtures = { 'should return the initial state': {}, 'should return PENDING': { action: { type: SYSTEM_STATUSES_REQUEST, }, }, 'should handle success': { action: { type: SYSTEM_STATUSES_SUCCESS, payload: { services }, }, }, 'should handle SYSTEM_STATUSES_FAILURE': { action: { type: SYSTEM_STATUSES_FAILURE, }, }, }; describe('AutoComplete reducer', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
160 entries across 160 versions & 1 rubygems