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