Sha256: ee4d717e4fc4cafe5b427855c8cb3c01d55b8c68687f20d2ce8d95c14d21fd47
Contents?: true
Size: 719 Bytes
Versions: 30
Compression:
Stored size: 719 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'; 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
30 entries across 30 versions & 1 rubygems