Sha256: 5a2fbb26e39a6cf5214d0efda5fc2f71a2f4b185163cc91d766123e3520ea8e6

Contents?: true

Size: 984 Bytes

Versions: 17

Compression:

Stored size: 984 Bytes

Contents

import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';
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

17 entries across 17 versions & 1 rubygems

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