Sha256: 8741712ce849d8a52c5682dddf119f364744a2fa9e1b083c93d3c3e4dd0ca108

Contents?: true

Size: 1013 Bytes

Versions: 25

Compression:

Stored size: 1013 Bytes

Contents

import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import ManageManifestModal from '../ManageManifestModal';
import { manifestHistorySuccessState } from './manifest.fixtures';

jest.mock('foremanReact/components/Pagination/PaginationWrapper', () => (<div>Pagination Mock</div>));
jest.mock('foremanReact/components/ForemanModal');

describe('manage manifest modal', () => {
  const noop = jest.fn();
  const organization = { id: 1, redhat_repository_url: 'https://redhat.com' };

  it('should render', () => {
    const page = shallow(<ManageManifestModal
      setModalOpen={noop}
      setModalClosed={noop}
      upload={noop}
      refresh={noop}
      delete={noop}
      loadManifestHistory={noop}
      organization={organization}
      loadOrganization={noop}
      saveOrganization={noop}
      bulkSearch={noop}
      manifestHistory={manifestHistorySuccessState}
      taskInProgress={false}
    />);
    expect(toJson(page)).toMatchSnapshot();
  });
});

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
katello-3.16.2 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.1.2 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.1.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.0 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.0.rc5.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.0.rc5 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.0.rc4.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.15.3.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.15.3 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.0.rc4 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.0.rc3.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.15.2 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.0.rc3 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.0.rc2.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.0.rc2 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.15.1.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.0.rc1.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.15.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.16.0.rc1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js