Sha256: 6de97107d42affd8dd92cea628b74aeda4f643f1efa9de6de4b249dce2c2aa0e
Contents?: true
Size: 933 Bytes
Versions: 3
Compression:
Stored size: 933 Bytes
Contents
import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; import HostReportsIndexPage from '../IndexPage'; const fixtures = { 'render with minimal props': { search: '', history: { location: { search: '' } }, hostId: '1', fetchAndPush: jest.fn(), reloadWithSearch: jest.fn(), isLoading: false, hasError: false, hasData: true, itemCount: 1, canCreate: true, sort: {}, page: 1, perPage: 20, reports: [ { id: '1', hostId: '1', hostName: 'foreman.example.com', proxyId: '1', proxyName: 'foreman.example.com', format: 'plain', reportedAt: '2021-01-19T12:34:02.841645028Z', change: 0, nochange: 0, failure: 0, }, ], }, }; describe('HostReportsIndexPage', () => { describe('redering', () => testComponentSnapshotsWithFixtures(HostReportsIndexPage, fixtures)); });
Version data entries
3 entries across 3 versions & 1 rubygems