Sha256: 9992de4fcb12ee87efe9b62526deb4877b5814d0f08dca4fab26ed62567dabfa

Contents?: true

Size: 777 Bytes

Versions: 23

Compression:

Stored size: 777 Bytes

Contents

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

import SortableHeaderItem from '../SortableHeaderItem';

const changeSort = () => {};

const fixtures = {
  'should render when not selected': {
    changeSort,
    sort: { attribute: '', order: 'asc' },
    value: 'severity',
    title: 'severity',
  },
  'should render when selected and sorting asc': {
    changeSort,
    sort: { attribute: 'severity', order: 'asc' },
    value: 'severity',
    title: 'Severity',
  },
  'should render when selected and sorting desc': {
    changeSort,
    sort: { attribute: 'severity', order: 'desc' },
    value: 'severity',
    title: 'Severity',
  },
};

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

Version data entries

23 entries across 23 versions & 1 rubygems

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