Sha256: 1b4b5fdbf27d687bded272cafebd29d2220d0fadb2e3b1b8da455a3bc81a2435

Contents?: true

Size: 1.07 KB

Versions: 50

Compression:

Stored size: 1.07 KB

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}
      enableSimpleContentAccess={noop}
      disableSimpleContentAccess={noop}
      loadManifestHistory={noop}
      organization={organization}
      loadOrganization={noop}
      saveOrganization={noop}
      bulkSearch={noop}
      manifestHistory={manifestHistorySuccessState}
      taskInProgress={false}
    />);
    expect(toJson(page)).toMatchSnapshot();
  });
});

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
katello-4.2.2 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.3.0.rc1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.2.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.2.0.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.1.4 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.0.3 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.2.0.1.rc3 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.18.5 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.2.0.1.rc2 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.2.0.rc2 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.1.3 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.2.0.rc1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.0.2.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.1.2.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.0.2 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.1.2 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-3.18.4 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.1.1 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.1.0 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js
katello-4.0.1.2 webpack/scenes/Subscriptions/Manifest/__tests__/ManageManifestModal.test.js