Sha256: e3a48fa0c7362c38036325761046a0989ab8b62fc76d444fd887ceb58e550921

Contents?: true

Size: 1.29 KB

Versions: 95

Compression:

Stored size: 1.29 KB

Contents

import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
import {
  selectSubscriptionsState,
  selectSearchQuery,
  selectDeleteModalOpened,
  selectDeleteButtonDisabled,
  selectSubscriptionsTask,
  selectHasUpstreamConnection,
  selectSimpleContentAccessEligible,
} from '../SubscriptionsSelectors';

const state = {
  katello: {
    subscriptions: {
      searchQuery: 'some-query',
      deleteModalOpened: false,
      taskModalOpened: false,
      deleteButtonDisabled: true,
      hasUpstreamConnection: false,
      simpleContentAccessEligible: false,
      task: {},
    },
  },
};

const fixtures = {
  'should select the subscriptions state': () => selectSubscriptionsState(state),
  'should select search-query': () => selectSearchQuery(state),
  'should select delete-modal-opened': () => selectDeleteModalOpened(state),
  'should select delete-button-disabled': () => selectDeleteButtonDisabled(state),
  'should select subscriptions task': () => selectSubscriptionsTask(state),
  'should select whether we have an upstream connection': () => selectHasUpstreamConnection(state),
  'should select whether we are simple content access eligible': () => selectSimpleContentAccessEligible(state),
};

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

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
katello-4.11.1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.11.0 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.11.0.rc2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.11.0.rc1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.10.0 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.9.2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.10.0.rc2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.10.0.rc1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.8.4 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.9.1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.8.3 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.9.0 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.7.6 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.8.2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.9.0.rc2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.9.0.rc1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.8.1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.7.5 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.8.0 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.8.0.rc2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js