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