Sha256: 5adefb9e6a5942b250b755a187f15989cbdf3c8a5fe58bb59dd5c6b5fce6d959

Contents?: true

Size: 1.1 KB

Versions: 20

Compression:

Stored size: 1.1 KB

Contents

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

const state = {
  katello: {
    subscriptions: {
      searchQuery: 'some-query',
      deleteModalOpened: false,
      taskModalOpened: false,
      deleteButtonDisabled: true,
      hasUpstreamConnection: 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),
};

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
katello-4.16.0.rc1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.14.3 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.14.2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.15.0 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.15.0.rc2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.15.0.rc1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.14.1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.14.0 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.14.0.rc3 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.14.0.rc2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.14.0.rc1.1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.14.0.rc1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.13.1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.13.0 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.12.1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.13.0.rc1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.12.0 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.12.0.rc3 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.12.0.rc2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-4.12.0.rc1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js