Sha256: 1bb4ee49c8cf3a2287a87400bd34482bcacd183ca16ffb039fe284b63d74cbdd

Contents?: true

Size: 628 Bytes

Versions: 142

Compression:

Stored size: 628 Bytes

Contents

import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
import {
  selectIsPollingTask,
  selectIsPollingTasks,
} from '../TaskSelectors';

const state = {
  intervals: {
    TEST_POLL_TASK: 1,
    TEST_TASK_SEARCH: 3,
  },
};

const fixtures = {
  'selects if polling a task': () => selectIsPollingTask(state, 'TEST'),
  'selects if not polling a task': () => selectIsPollingTask({}),
  'selects if polling tasks': () => selectIsPollingTasks(state, 'TEST'),
  'selects if not polling tasks': () => selectIsPollingTasks({}),
};

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

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.15.0.rc1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.14.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.14.0 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.14.0.rc3 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.14.0.rc2 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.14.0.rc1.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.14.0.rc1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.13.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.13.0 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.12.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.13.0.rc1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.12.0 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.12.0.rc3 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.12.0.rc2 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.12.0.rc1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.11.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.11.0 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.11.0.rc2 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.11.0.rc1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js