Sha256: e93cf111911d77bf184d32f5f9a917a8e178c523ff7b3fe5ed35aa6e9a254e5d
Contents?: true
Size: 740 Bytes
Versions: 23
Compression:
Stored size: 740 Bytes
Contents
import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import ModuleStreamsPage from '../ModuleStreamsPage'; import GenericContentPage from '../../../components/Content/GenericContentPage'; 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(GenericContentPage)).toHaveLength(1); }); });
Version data entries
23 entries across 23 versions & 1 rubygems