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

Version Path
katello-4.3.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.2.2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.3.0 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.3.0.rc4 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.3.0.rc3 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.3.0.rc2.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.3.0.rc2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.3.0.rc1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.2.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.2.0.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.1.4 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.0.3 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.2.0.1.rc3 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-3.18.5 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.2.0.1.rc2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.2.0.rc2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.1.3 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.2.0.rc1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.0.2.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js
katello-4.1.2.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetails.test.js