Sha256: 3c42ffb29682546b59a6bcda6e1d2c08578432779b5f60289cd1b2327ddf136f
Contents?: true
Size: 847 Bytes
Versions: 2
Compression:
Stored size: 847 Bytes
Contents
import { testReducerSnapshotWithFixtures } from '@theforeman/test'; import reducer from '../InsightsTabReducer'; import { hits } from './InsightsTab.fixtures'; import { INSIGHTS_HITS_REQUEST, INSIGHTS_HITS_SUCCESS, INSIGHTS_HITS_FAILURE, } 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 }, }, }, 'should handle INSIGHTS_HITS_FAILURE': { action: { type: INSIGHTS_HITS_FAILURE, payload: { error: 'some-error', }, }, }, }; describe('AccountList reducer', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_rh_cloud-2.0.12 | webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js |
foreman_rh_cloud-2.0.11 | webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js |