Sha256: 841146f25e4ef893e90b94f8c6f44eb10bd63aad75bcbdc5a8f10bb5784f4068

Contents?: true

Size: 1.06 KB

Versions: 21

Compression:

Stored size: 1.06 KB

Contents

import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
import {
  selectDashboard,
  selectPollingProcessID,
  selectActiveTab,
  selectUploading,
  selectGenerating,
} from '../DashboardSelectors';
import {
  logs,
  completed,
  pollingProcessID,
  activeTab,
  accountID,
} from '../Dashboard.fixtures';

const state = {
  dashboard: {
    [accountID]: {
      generating: {
        logs,
        completed,
      },
      uploading: {
        logs,
        completed,
      },
      activeTab,
      pollingProcessID,
    },
  },
};

const fixtures = {
  'should return Dashboard': () => selectDashboard(state, accountID),
  'should return Dashboard uploading': () => selectUploading(state, accountID),
  'should return Dashboard generating': () =>
    selectGenerating(state, accountID),
  'should return Dashboard pollingProcessID': () =>
    selectPollingProcessID(state, accountID),
  'should return Dashboard activeTab': () => selectActiveTab(state, accountID),
};

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

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
foreman_rh_cloud-0.9.6 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_rh_cloud-1.0.6 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_rh_cloud-0.9.5 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_rh_cloud-1.0.5 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_rh_cloud-0.9.4.1 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_rh_cloud-1.0.4.1 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_rh_cloud-1.0.4 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_rh_cloud-0.9.4 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_inventory_upload-1.0.3 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_inventory_upload-0.9.2 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_inventory_upload-1.0.2 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_inventory_upload-0.9.1 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_inventory_upload-1.0.1 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_inventory_upload-0.9.0 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_inventory_upload-1.0.0 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_inventory_upload-1.0.0.beta7 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_inventory_upload-1.0.0.beta6 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_inventory_upload-1.0.0.beta5 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_inventory_upload-1.0.0.beta4 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js
foreman_inventory_upload-1.0.0.beta3 webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js