Sha256: 5192b571e20cfbb5b2aecd237d92a18eb73d383a8430f2d80bb45630b60360cd
Contents?: true
Size: 920 Bytes
Versions: 6
Compression:
Stored size: 920 Bytes
Contents
import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; import TasksTablePage from '../TasksTablePage'; import { minProps } from './TasksTable.fixtures'; jest.mock('foremanReact/common/helpers', () => ({ getURIQuery: () => ({ state: 'stopped' }), })); const history = { location: { pathname: '/foreman_tasks/tasks', search: '?action="some-name"' }, }; const fixtures = { 'render with minimal props': { ...minProps, history }, 'render with Breadcrubs': { ...minProps, history, getBreadcrumbs: () => ({ breadcrumbItems: [ { caption: 'Tasks', url: `/foreman_tasks/tasks` }, { caption: 'action Name', url: `/foreman_tasks/tasks/someid`, }, { caption: 'Sub tasks' }, ], }), }, }; describe('TasksTablePage', () => { describe('rendering', () => testComponentSnapshotsWithFixtures(TasksTablePage, fixtures)); });
Version data entries
6 entries across 6 versions & 1 rubygems