Sha256: ff383db8071ba70dde565617a2eaabcf8fd27411e28170357fd88fdc9159e425

Contents?: true

Size: 796 Bytes

Versions: 78

Compression:

Stored size: 796 Bytes

Contents

import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';

import {
  selectItems,
  selectAutoRefresh,
  selectApiStatus,
  selectTotalHosts,
  selectIntervalExists,
} from '../TargetingHostsSelectors';

const state = {
  TARGETING_HOSTS: {
    status: 'RESOLVED',
    response: {
      hosts: [1, 2],
      total_hosts: 2,
      autoRefresh: 'true',
    },
  },
};

const fixtures = {
  'should return hosts': () => selectItems(state),
  'should return autoRefresh': () => selectAutoRefresh(state),
  'should return apiStatus': () => selectApiStatus(state),
  'should return totalHosts': () => selectTotalHosts(state),
  'should return intervalExists': () => selectIntervalExists(state),
};

describe('TargetingHostsSelectors', () =>
  testSelectorsSnapshotWithFixtures(fixtures));

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
foreman_remote_execution-6.1.0 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-5.0.4 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-5.0.3 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-6.0.0 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-5.0.2 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-5.1.0 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-5.0.1 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-5.0.0 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-4.8.0 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-4.5.6 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-4.5.5 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-4.5.4 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-4.7.0 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-4.5.3 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-4.5.2 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-4.5.1 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-4.6.0 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-4.5.0 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js