Sha256: c8b702a609f48727e32be3d195e35ed30a32050afe9f87ab16fd13e8850e1ee2
Contents?: true
Size: 927 Bytes
Versions: 22
Compression:
Stored size: 927 Bytes
Contents
import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils'; 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
22 entries across 22 versions & 1 rubygems