Sha256: 02d0478d88cde2c6d698df8f360a11a9c8a38f186a36114bf022bd3a191553b6

Contents?: true

Size: 840 Bytes

Versions: 101

Compression:

Stored size: 840 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils';
import ModuleStreamDetails from '../ModuleStreamDetails';
import { details, loadingState } from './moduleStreamDetails.fixtures';

jest.mock('foremanReact/components/Pagination/PaginationWrapper');

const mockFunc = jest.fn();

const baseProps = {
  loadModuleStreamDetails: mockFunc,
  location: { search: '' },
  history: { push: mockFunc },
  moduleStreamDetails: details,
  match: { params: { id: String(details.id) } },
};

const fixtures = {
  'renders with module stream provided': {
    ...baseProps,
  },
  'renders with loading state': {
    ...baseProps,
    moduleStreamDetails: loadingState,
  },
};

describe('Module stream details page', () => {
  describe('rendering', () => testComponentSnapshotsWithFixtures(ModuleStreamDetails, fixtures));
});

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
katello-3.17.3 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.0.0.rc2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.18.1.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.17.2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.0.0.rc1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.18.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.18.0 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.17.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.16.2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.18.0.rc2.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.18.0.rc2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.17.0 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.18.0.rc1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.17.0.rc2.2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.17.0.rc2.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.16.1.2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.16.1.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.17.0.rc2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.16.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.17.0.rc1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js