Sha256: caaff23368f4a728cf81f545760db6ac84f1a3bf66e34abc8c1b4c85c774d46e

Contents?: true

Size: 1.09 KB

Versions: 10

Compression:

Stored size: 1.09 KB

Contents

import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
import {
  selectAccountsList,
  selectAccounts,
  selectPollingProcessID,
  selectAutoUploadEnabled,
  selectHostObfuscationEnabled,
} from '../AccountListSelectors';
import {
  pollingProcessID,
  accounts,
  autoUploadEnabled,
  hostObfuscationEnabled,
} from '../AccountList.fixtures';
import { rhCloudStateWrapper } from '../../../../ForemanRhCloudTestHelpers';

const state = rhCloudStateWrapper({
  accountsList: {
    accounts,
    pollingProcessID,
    autoUploadEnabled,
    hostObfuscationEnabled,
  },
});

const fixtures = {
  'should return AccountsList': () => selectAccountsList(state),
  'should return AccountList accounts': () => selectAccounts(state),
  'should return AccountList pollingProcessID': () =>
    selectPollingProcessID(state),
  'should return AccountList autoUploadEnabled': () =>
    selectAutoUploadEnabled(state),
  'should return AccountList hostObfuscationEnabled': () =>
    selectHostObfuscationEnabled(state),
};

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_rh_cloud-0.9.12 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-1.0.12 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-0.9.11 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-1.0.11 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-0.9.10 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-1.0.10 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-1.0.9 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-0.9.9 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-0.9.8 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-1.0.8 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js