Sha256: 3cc18878ee86a0978e75f7cfdc24e6ffad17988726d05eeaa8d7dee0c2fb33b4

Contents?: true

Size: 794 Bytes

Versions: 1

Compression:

Stored size: 794 Bytes

Contents

import { STATUS } from 'foremanReact/constants';

export const minProps = {
  getTableItems: jest.fn(),
  getBreadcrumbs: jest.fn(),
  itemCount: 2,
  cancelTask: jest.fn(),
  resumeTask: jest.fn(),
  pagination: {
    page: 1,
    perPage: 10,
  },
  history: { location: { search: '' } },
  location: { pathname: '' },
  status: STATUS.RESOLVED,
  results: ['a', 'b'],
  sort: {
    by: 'q',
    order: 'w',
  },
};

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

1 entries across 1 versions & 1 rubygems

Version Path
foreman-tasks-0.17.1 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js