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-14.1.2 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-14.1.1 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-14.1.0 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-14.0.2 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-14.0.1 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-13.2.6 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-14.0.0 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-13.2.5 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-13.2.4 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-13.2.3 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-13.2.2 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-12.0.7 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-13.2.1 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-13.2.0 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-10.1.3 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-13.0.0 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-12.0.5 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-12.0.4 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-12.0.1 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js
foreman_remote_execution-12.0.2 webpack/react_app/components/TargetingHosts/__tests__/TargetingHostsSelectors.test.js