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

Version Path
foreman-tasks-10.0.2 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-10.0.1 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-10.0.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-9.2.3 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-9.2.2 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-9.2.1 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-9.2.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-9.1.1 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-9.0.4 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-9.1.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-9.0.2 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-9.0.1 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-8.3.3 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-9.0.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-8.2.1 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-8.1.4 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-8.3.2 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-8.3.1 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-8.1.3 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-8.3.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js