Sha256: 073f1ea56ab9b0a7e2e9ba0569af7ebd492020066cc0b6ba57707eeb9b32693a

Contents?: true

Size: 709 Bytes

Versions: 14

Compression:

Stored size: 709 Bytes

Contents

import { testReducerSnapshotWithFixtures } from '@theforeman/test';
import reducer from '../SyncButtonReducer';
import { syncHosts, disconnectHosts } from './SyncButtonFixtures';
import {
  INVENTORY_SYNC_REQUEST,
  INVENTORY_SYNC_SUCCESS,
} from '../SyncButtonConstants';

const fixtures = {
  'should return the initial state': {},
  'should handle INVENTORY_SYNC_REQUEST': {
    action: {
      type: INVENTORY_SYNC_REQUEST,
      payload: {},
    },
  },
  'should handle INVENTORY_SYNC_SUCCESS': {
    action: {
      type: INVENTORY_SYNC_SUCCESS,
      payload: { syncHosts, disconnectHosts },
    },
  },
};

describe('AccountList reducer', () =>
  testReducerSnapshotWithFixtures(reducer, fixtures));

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
foreman_rh_cloud-2.0.18.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-3.0.18.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-2.0.18 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-3.0.18 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-2.0.17 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-3.0.17 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-2.0.16 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-3.0.16 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-2.0.15 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-3.0.15 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-3.0.14 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-2.0.14 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-2.0.13.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-2.0.13 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js