Sha256: 4fad01636816f56e65082cb017e777623a7fe5be9225fa49c3e61e2459b3933b
Contents?: true
Size: 669 Bytes
Versions: 10
Compression:
Stored size: 669 Bytes
Contents
import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils'; import reducer from '../InsightsTabReducer'; import { hits } from './InsightsTab.fixtures'; import { INSIGHTS_HITS_REQUEST, INSIGHTS_HITS_SUCCESS, } from '../InsightsTabConstants'; const fixtures = { 'should return the initial state': {}, 'should handle INSIGHTS_HITS_REQUEST': { action: { type: INSIGHTS_HITS_REQUEST, payload: {}, }, }, 'should handle INSIGHTS_HITS_SUCCESS': { action: { type: INSIGHTS_HITS_SUCCESS, payload: { hits }, }, }, }; describe('AccountList reducer', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
10 entries across 10 versions & 1 rubygems