Sha256: e5fde188423cdca0d7e9e44c47ddb6ab2bae8149ca8ca1ae7b5bdf628a326fd7

Contents?: true

Size: 990 Bytes

Versions: 16

Compression:

Stored size: 990 Bytes

Contents

import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
import { inventoryStateWrapper } from '../../../../../../ForemanRhCloudTestHelpers';
import {
  status,
  error,
  syncHosts,
  disconnectHosts,
} from './SyncButtonFixtures';
import {
  selectInventorySync,
  selectStatus,
  selectError,
  selectSyncHosts,
  selectDisconnectHosts,
} from '../SyncButtonSelectors';

const state = inventoryStateWrapper({
  inventorySync: {
    status,
    error,
    syncHosts,
    disconnectHosts,
  },
});

const fixtures = {
  'should return InventorySync': () => selectInventorySync(state),
  'should return InventorySync status': () => selectStatus(state),
  'should return InventorySync error': () => selectError(state),
  'should return InventorySync SyncHosts': () => selectSyncHosts(state),
  'should return InventorySync disconnectHosts': () =>
    selectDisconnectHosts(state),
};

describe('SyncButton selectors', () =>
  testSelectorsSnapshotWithFixtures(fixtures));

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
foreman_rh_cloud-1.0.18 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-1.0.17 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-1.0.16 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-1.0.15 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-1.0.14 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-0.9.14 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-0.9.13.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-1.0.13.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-0.9.13 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-1.0.13 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-0.9.12 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-1.0.12 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-0.9.11 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-1.0.11 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-0.9.10 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
foreman_rh_cloud-1.0.10 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js