Sha256: 3a0bf6fc76483f3ae3a8e7fa9796d357c9a6053ae277f61b2daab1a5aa0e29ed
Contents?: true
Size: 769 Bytes
Versions: 13
Compression:
Stored size: 769 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'; 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
13 entries across 13 versions & 1 rubygems