Sha256: bd86a8834dd4a69dbce4ad1c83749bd337ab40dcb27ab256a0c08fd8730ca411
Contents?: true
Size: 999 Bytes
Versions: 11
Compression:
Stored size: 999 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('../../../../move_to_foreman/foreman_toast_notifications'); jest.mock('foremanReact/components/Pagination/PaginationWrapper', () => (<div>Pagination Mock</div>)); describe('manage manifest modal', () => { const noop = () => {}; const organization = { id: 1, redhat_repository_url: 'https://redhat.com' }; it('should render', async () => { const page = shallow(<ManageManifestModal upload={noop} refresh={noop} delete={noop} loadManifestHistory={noop} organization={organization} loadOrganization={noop} saveOrganization={noop} bulkSearch={noop} manifestHistory={manifestHistorySuccessState} taskInProgress={false} showModal />); expect(toJson(page)).toMatchSnapshot(); }); });
Version data entries
11 entries across 11 versions & 1 rubygems