Sha256: 73ae0ded3497be2cd3cd2bcc21e92c1281ee0e16d2edeec41e94b2b15f1bed75
Contents?: true
Size: 873 Bytes
Versions: 87
Compression:
Stored size: 873 Bytes
Contents
import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import AnsibleCollectionsPage from '../AnsibleCollectionsPage'; import ContentPage from '../../../components/Content/ContentPage'; jest.mock('foremanReact/components/Pagination/PaginationWrapper', () => (<div>Pagination Mock</div>)); describe('Ansible Collections page', () => { it('should render and contain appropiate components', async () => { const ansibleCollections = {}; const mockLocation = { search: '' }; const getAnsibleCollections = () => {}; const wrapper = shallow(<AnsibleCollectionsPage ansibleCollections={ansibleCollections} getAnsibleCollections={getAnsibleCollections} location={mockLocation} />); expect(toJson(wrapper)).toMatchSnapshot(); expect(wrapper.find(ContentPage)).toHaveLength(1); }); });
Version data entries
87 entries across 87 versions & 1 rubygems