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