Sha256: 43ad02f3564f90053113442933c26d83e656a6ddf81f66e7524f174b3b591066

Contents?: true

Size: 715 Bytes

Versions: 10

Compression:

Stored size: 715 Bytes

Contents

import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils';
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

10 entries across 10 versions & 1 rubygems

Version Path
foreman_rh_cloud-1.0.18 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-1.0.17 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-1.0.16 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-1.0.15 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-1.0.14 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-0.9.14 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-0.9.13.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-1.0.13.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-0.9.13 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
foreman_rh_cloud-1.0.13 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js