Sha256: 1e66794265c3c514c66a1684241636e012104b64011db3b1cdbb04f65ba11d86

Contents?: true

Size: 1.19 KB

Versions: 20

Compression:

Stored size: 1.19 KB

Contents

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

const state = {
  katello: {
    subscriptions: {
      searchQuery: 'some-query',
      manifestModalOpened: false,
      deleteModalOpened: false,
      taskModalOpened: false,
      deleteButtonDisabled: true,
      tasks: ['task1', 'task2'],
    },
  },
};

const fixtures = {
  'should select the subscriptions state': () => selectSubscriptionsState(state),
  'should select search-query': () => selectSearchQuery(state),
  'should select manifest-modal-opened': () => selectManifestModalOpened(state),
  'should select delete-modal-opened': () => selectDeleteModalOpened(state),
  'should select task-modal-opened': () => selectTaskModalOpened(state),
  'should select delete-button-disabled': () => selectDeleteButtonDisabled(state),
  'should select subscriptions tasks': () => selectSubscriptionsTasks(state),
};

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
katello-3.15.0.rc1.1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.15.0.rc1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.14.1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.13.4 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.14.0 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.13.3 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.14.0.rc2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.13.2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.14.0.rc1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.13.1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.13.0 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.13.0.rc2.1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.13.0.rc2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.12.3 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.12.2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.13.0.rc1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.12.1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.12.0 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.12.0.rc2 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js
katello-3.12.0.rc1 webpack/scenes/Subscriptions/__tests__/SubscriptionsSelectors.test.js