Sha256: 7a1b5718735e7b7780280cbe06e0685d38e887f2f9cc9f21b291b4e51ec1cae7

Contents?: true

Size: 780 Bytes

Versions: 26

Compression:

Stored size: 780 Bytes

Contents

import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';

import { preupgradeReports } from './PreupgradeReports.fixtures';

import {
  selectPreupgradeReports,
  selectLoadingPreupgradeReports,
  selectError,
} from '../PreupgradeReportsSelectors';

const state = {
  foremanLeapp: {
    preupgrade: {
      preupgradeReports,
      loadingPreupgradeReports: false,
      error: { errorMsg: 'Error', statusText: 'Status text' },
    },
  },
};

const fixtures = {
  'should return preupgrade reports': () => selectPreupgradeReports(state),
  'should return loading state': () => selectLoadingPreupgradeReports(state),
  'should return error': () => selectError(state),
};

describe('PreupgradeReportsSelectors', () =>
  testSelectorsSnapshotWithFixtures(fixtures));

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
foreman_leapp-2.0.1 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-2.0.0 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-1.2.1 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-1.2.0 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-0.1.15 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-1.1.1 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-1.1.0 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-1.0.0 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-0.1.14 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-0.1.13 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-0.1.12 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-0.1.11 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-0.1.10 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-0.1.9 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-0.1.8 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-0.1.7 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-0.1.6 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-0.1.5 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-0.1.4 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js
foreman_leapp-0.1.3 webpack/components/PreupgradeReports/__tests__/PreupgradeReportsSelectors.test.js