Sha256: 21249613924636214f2ddea35bcbcfd6305f0a78739a212f6b46072bf499d6d6

Contents?: true

Size: 684 Bytes

Versions: 6

Compression:

Stored size: 684 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils';

import { CancelResumeConfirm } from '../CancelResumeConfirm';
import { CANCEL, RESUME, CLOSED } from '../../TasksTableConstants';

const baseProps = {
  closeModal: () => null,
  selectedRowsLen: 3,
  action: () => null,
  selected: [1, 2, 3],
};
const fixtures = {
  'renders CANCEL modal': {
    ...baseProps,
    modalStatus: CANCEL,
  },
  'renders RESUME modal': {
    ...baseProps,
    modalStatus: RESUME,
  },
  'renders CLOSED modal': {
    ...baseProps,
    modalStatus: CLOSED,
  },
};

describe('CancelResumeConfirm', () =>
  testComponentSnapshotsWithFixtures(CancelResumeConfirm, fixtures));

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman-tasks-0.17.6 webpack/ForemanTasks/Components/TasksTable/Components/__test__/CancelResumeConfirm.test.js
foreman-tasks-1.0.0 webpack/ForemanTasks/Components/TasksTable/Components/__test__/CancelResumeConfirm.test.js
foreman-tasks-0.17.5 webpack/ForemanTasks/Components/TasksTable/Components/__test__/CancelResumeConfirm.test.js
foreman-tasks-0.17.4 webpack/ForemanTasks/Components/TasksTable/Components/__test__/CancelResumeConfirm.test.js
foreman-tasks-0.17.3 webpack/ForemanTasks/Components/TasksTable/Components/__test__/CancelResumeConfirm.test.js
foreman-tasks-0.17.2 webpack/ForemanTasks/Components/TasksTable/Components/__test__/CancelResumeConfirm.test.js