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

Version Path
foreman_rh_cloud-3.0.26 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-4.0.26 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-4.0.25.1 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-3.0.25 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-4.0.25 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-3.0.24.1 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-4.0.24.1 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-3.0.24 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-4.0.24 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-3.0.23 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-4.0.23 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-3.0.22 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-4.0.22 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-4.0.21.1 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-3.0.21.1 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-3.0.21 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-3.0.20 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-3.0.19 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
foreman_rh_cloud-3.0.18.1 webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js