Sha256: f54288aa5965b6b73fe1160c1d8173448dafeb54f99c5a5594ceae27bb8f209d
Contents?: true
Size: 921 Bytes
Versions: 4
Compression:
Stored size: 921 Bytes
Contents
import { testReducerSnapshotWithFixtures } from '@theforeman/test'; import { LAYOUT_CHANGE_ORG } from 'foremanReact/components/Layout/LayoutConstants'; import reducer from '../InventoryFilterReducer'; import { filterTerm, org } 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: { org }, }, }, }; describe('AccountList reducer', () => testReducerSnapshotWithFixtures(reducer, fixtures));
Version data entries
4 entries across 4 versions & 1 rubygems