Sha256: d69e2f185f8904cf8b4024061202b32b2c0b6bf8eb40bc9a68861b38b6914485

Contents?: true

Size: 950 Bytes

Versions: 26

Compression:

Stored size: 950 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: [],
  pagination: {
    page: 1,
    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

26 entries across 26 versions & 1 rubygems

Version Path
foreman-tasks-4.1.6 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-5.2.3 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-5.2.2 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-5.2.1 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-5.3.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-5.2.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-5.1.1 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-5.1.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-4.1.5 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-4.1.4 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-4.1.3 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-3.0.6 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-5.0.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-4.1.2 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-4.1.1 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-4.0.1 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-4.1.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-3.0.5 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-4.0.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-3.0.4 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js