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-4.3.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.2.2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.3.0 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.3.0.rc4 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.3.0.rc3 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.3.0.rc2.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.3.0.rc2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.3.0.rc1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.2.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.2.0.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.1.4 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.0.3 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.2.0.1.rc3 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-3.18.5 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.2.0.1.rc2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.2.0.rc2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.1.3 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.2.0.rc1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.0.2.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js
katello-4.1.2.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetails.test.js