Sha256: ee2494712aba84ab3b25b9741f8e3f86ffb79bb9fe48944dafdcb9cd85c43521

Contents?: true

Size: 938 Bytes

Versions: 2

Compression:

Stored size: 938 Bytes

Contents

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

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

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),
};

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_rh_cloud-0.9.7 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_rh_cloud-1.0.7 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js