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.2.0.rc1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.0.2.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.1.2.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.0.2 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.1.2 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-3.18.4 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.1.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.1.0 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.0.1.2 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-3.18.3.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.1.0.rc2.2 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.1.0.rc2.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.0.1.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-3.18.3 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.1.0.rc2 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.0.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.1.0.rc1.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.1.0.rc1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.0.0 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js
katello-4.0.0.rc3.1 webpack/scenes/Tasks/__tests__/TaskSelectors.test.js