Sha256: 77fcee1b183501056720674e29c47e06326ef00b27eb1fb92f68b4dee627a1cd

Contents?: true

Size: 1 KB

Versions: 6

Compression:

Stored size: 1 KB

Contents

import { STATUS } from 'foremanReact/constants';

export const minProps = {
  getTableItems: jest.fn(),
  getBreadcrumbs: jest.fn(),
  itemCount: 2,
  cancelTask: jest.fn(),
  resumeTask: jest.fn(),
  actionSelected: jest.fn(),
  selectAllRows: jest.fn(),
  unselectAllRows: jest.fn(),
  selectRow: jest.fn(),
  unselectRow: jest.fn(),
  selectedRows: [],
  pagination: {
    page: 1,
    perPage: 10,
  },
  history: { location: { search: '' } },
  status: STATUS.RESOLVED,
  results: ['a', 'b'],
  sort: {
    by: 'q',
    order: 'w',
  },
  showResumeSelcetedModal: jest.fn(),
  showCancelSelcetedModal: jest.fn(),
  hideSelcetedModal: 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

6 entries across 6 versions & 1 rubygems

Version Path
foreman-tasks-0.17.6 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-1.0.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-0.17.5 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-0.17.4 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-0.17.3 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js
foreman-tasks-0.17.2 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js