Sha256: 822a9a22d6b7d8d0c03a9950bfb28266f0a653e4bb34478709ad129aceb8b7e2

Contents?: true

Size: 989 Bytes

Versions: 23

Compression:

Stored size: 989 Bytes

Contents

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

import PreupgradeReportsList from '../index';

const allEntries = [
  { title: 'Fix me!', severity: 'Too severe to talk about' },
  { title: 'I am broken too', severity: 'medium' },
  { title: 'Octocat is not happy', severity: 'high' },
  { title: 'Not enough credits', severity: 'low' },
];

const isSelected = () => false;
const toggleSelected = () => {};
const sort = { attribute: '', order: 'asc' };
const changeSort = () => {};
const toggleSelectAll = () => {};

const fixtures = {
  'should render': {
    allEntries,
    fixAllWorking: false,
    isSelected,
    toggleSelected,
    sort,
    changeSort,
    toggleSelectAll,
  },
  'should render when working': {
    allEntries,
    fixAllWorking: true,
    isSelected,
    toggleSelected,
    sort,
    changeSort,
    toggleSelectAll,
  },
};

describe('PreupgradeReportsList', () =>
  testComponentSnapshotsWithFixtures(PreupgradeReportsList, fixtures));

Version data entries

23 entries across 23 versions & 1 rubygems

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