Sha256: 936fe11a9eed6a7f716d575ebad3ef1995d8d524415755ae7501b413672cf2ee
Contents?: true
Size: 914 Bytes
Versions: 36
Compression:
Stored size: 914 Bytes
Contents
import { STATUS } from 'foremanReact/constants'; export const minProps = { getTableItems: jest.fn(), getBreadcrumbs: jest.fn(), itemCount: 2, selectPage: jest.fn(), selectAllRows: jest.fn(), unselectAllRows: jest.fn(), selectRow: jest.fn(), unselectRow: jest.fn(), reloadPage: jest.fn(), selectedRows: [], perPage: 10, history: { location: { search: '' } }, results: ['a', 'b'], sort: { by: 'q', order: 'w', }, openClickedModal: jest.fn(), openModalAction: jest.fn(), openModal: jest.fn(), }; export default { 'render with minimal Props': { ...minProps, }, 'render with no results': { ...minProps, results: [], status: STATUS.RESOLVED, }, 'render with error Props': { ...minProps, results: ['a'], status: STATUS.ERROR, }, 'render with loading Props': { ...minProps, results: ['a'], status: STATUS.PENDING, }, };
Version data entries
36 entries across 36 versions & 1 rubygems