Sha256: ae977652f946708a1a6b32432036d528fb71d31814ceb634377e116f1deee26c
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
import { testReducerSnapshotWithFixtures } from '@theforeman/test'; import { LAYOUT_CHANGE_ORG, LAYOUT_INITIALIZE, } from 'foremanReact/components/Layout/LayoutConstants'; import reducer from '../InventoryFilterReducer'; import { filterTerm, organization } from '../InventoryFilter.fixtures'; import { INVENTORY_FILTER_UPDATE, INVENTORY_FILTER_CLEAR, } from '../InventoryFilterConstants'; const fixtures = { 'should return the initial state': {}, 'should handle INVENTORY_FILTER_UPDATE': { action: { type: INVENTORY_FILTER_UPDATE, payload: { filterTerm, }, }, }, 'should handle INVENTORY_FILTER_CLEAR': { action: { type: INVENTORY_FILTER_CLEAR, payload: {}, }, }, 'should handle LAYOUT_CHANGE_ORG': { action: { type: LAYOUT_CHANGE_ORG, payload: { organization }, }, }, 'should handle LAYOUT_INITIALIZE': { action: { type: LAYOUT_INITIALIZE, payload: { organization }, }, }, }; describe('AccountList reducer', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_rh_cloud-3.0.18 | webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js |