Sha256: d523be439e4e2fca28a704687193fdfe57e04dc677223a34d60ea5ca2ea20ef3
Contents?: true
Size: 884 Bytes
Versions: 87
Compression:
Stored size: 884 Bytes
Contents
import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils'; import AnsibleCollectionDetails from '../AnsibleCollectionDetails'; import { details, loadingState } from './AnsibleCollectionDetails.fixtures'; jest.mock('foremanReact/components/Pagination/PaginationWrapper'); const mockFunc = jest.fn(); const baseProps = { getAnsibleCollectionDetails: mockFunc, location: { search: '' }, history: { push: mockFunc }, ansibleCollectionDetails: details, match: { params: { id: String(details.id) } }, }; const fixtures = { 'renders with ansible collection provided': { ...baseProps, }, 'renders with loading state': { ...baseProps, ansibleCollectionDetails: loadingState, }, }; describe('Ansible Collection details page', () => { describe('rendering', () => testComponentSnapshotsWithFixtures(AnsibleCollectionDetails, fixtures)); });
Version data entries
87 entries across 87 versions & 1 rubygems