Sha256: 75812e7a4cd99e00db7ddd4d4e568ddd7a5daa2884680c5068eb594eb5b2fc6a

Contents?: true

Size: 1.09 KB

Versions: 5

Compression:

Stored size: 1.09 KB

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
foreman_rh_cloud-2.0.12 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-2.0.11 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-2.0.10 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-2.0.9 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-2.0.8 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js