Sha256: 7c8e706a1ae0bc619bebb3098321715c66043ae76f6d4a2ace8d8bf135f0ced8
Contents?: true
Size: 839 Bytes
Versions: 13
Compression:
Stored size: 839 Bytes
Contents
import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import ContentTable from '../../../components/Content/ContentTable'; import TableSchema from '../../AnsibleCollections/AnsibleCollectionsTableSchema'; import { Table } from '../../../components/pf3Table'; describe('Ansible Collections table', () => { it('should render and contain appropiate components', async () => { const ansibleCollections = { loading: false, results: [], pagination: {}, itemCount: 0, }; const onPaginationChange = () => {}; const wrapper = shallow(<ContentTable content={ansibleCollections} tableSchema={TableSchema} onPaginationChange={onPaginationChange} />); expect(toJson(wrapper)).toMatchSnapshot(); expect(wrapper.find(Table)).toHaveLength(1); }); });
Version data entries
13 entries across 13 versions & 1 rubygems