Sha256: 7fa103493471eca6b83fd89204effc6eb2c5251d3e95cf0f02aeca08f392558e
Contents?: true
Size: 904 Bytes
Versions: 101
Compression:
Stored size: 904 Bytes
Contents
import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils'; import Table from './Table'; import { columnsFixtures, rowsFixtures } from './TableFixtures'; jest.mock('foremanReact/components/Pagination/PaginationWrapper'); const fixtures = { 'renders Table with emptyState': { columns: columnsFixtures, rows: [], emptyState: { empty: 'state' }, }, 'renders Table with children': { columns: columnsFixtures, rows: rowsFixtures, children: 'some children', }, 'renders Table with body': { columns: columnsFixtures, rows: rowsFixtures, bodyMessage: 'some body message', }, 'renders Table with pagination': { columns: columnsFixtures, rows: rowsFixtures, children: 'some children', itemCount: 2, pagination: { page: 1, perPage: 20 }, }, }; describe('Table', () => testComponentSnapshotsWithFixtures(Table, fixtures));
Version data entries
101 entries across 101 versions & 1 rubygems