Sha256: 2c69f91b3fe84ee99db168bf42103953e92ac39958f3e5585d8181eebec195b7
Contents?: true
Size: 797 Bytes
Versions: 10
Compression:
Stored size: 797 Bytes
Contents
import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import ModuleStreamsTable from '../ModuleStreamsTable'; import { Table } from '../../../move_to_foreman/components/common/table'; jest.mock('../../../move_to_foreman/foreman_toast_notifications'); describe('Module streams table', () => { it('should render and contain appropiate components', async () => { const moduleStreams = { loading: false, results: [], pagination: {}, itemCount: 0, }; const onPaginationChange = () => {}; const wrapper = shallow(<ModuleStreamsTable moduleStreams={moduleStreams} onPaginationChange={onPaginationChange} />); expect(toJson(wrapper)).toMatchSnapshot(); expect(wrapper.find(Table)).toHaveLength(1); }); });
Version data entries
10 entries across 10 versions & 1 rubygems