Sha256: a6de103b105403eabb08a92c22c9f9768426acedd47bfa0b65a158fe2cb0caca

Contents?: true

Size: 710 Bytes

Versions: 6

Compression:

Stored size: 710 Bytes

Contents

import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
import {
  selectAccountsList,
  selectStatuses,
  selectPollingProcessID,
} from '../AccountListSelectors';
import { pollingProcessID, statuses } from '../AccountList.fixtures';

const state = {
  ForemanInventoryUpload: {
    accountsList: {
      statuses,
      pollingProcessID,
    },
  },
};

const fixtures = {
  'should return AccountsList': () => selectAccountsList(state),
  'should return AccountList statuses': () => selectStatuses(state),
  'should return AccountList pollingProcessID': () =>
    selectPollingProcessID(state),
};

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_inventory_upload-1.0.0.beta7 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_inventory_upload-1.0.0.beta6 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_inventory_upload-1.0.0.beta5 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_inventory_upload-1.0.0.beta4 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_inventory_upload-1.0.0.beta3 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
foreman_inventory_upload-1.0.0.beta2 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js