Sha256: e93cf111911d77bf184d32f5f9a917a8e178c523ff7b3fe5ed35aa6e9a254e5d

Contents?: true

Size: 740 Bytes

Versions: 23

Compression:

Stored size: 740 Bytes

Contents

import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import ModuleStreamsPage from '../ModuleStreamsPage';
import GenericContentPage from '../../../components/Content/GenericContentPage';

describe('Module streams page', () => {
  it('should render and contain appropiate components', async () => {
    const moduleStreams = {};
    const mockLocation = { search: '' };
    const getModuleStreams = () => {};

    const wrapper = shallow(<ModuleStreamsPage
      moduleStreams={moduleStreams}
      getModuleStreams={getModuleStreams}
      location={mockLocation}
    />);

    expect(toJson(wrapper)).toMatchSnapshot();
    expect(wrapper.find(GenericContentPage)).toHaveLength(1);
  });
});

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
katello-4.12.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.13.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.12.0 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.12.0.rc3 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.12.0.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.12.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.11.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.11.0 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.11.0.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.11.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.10.0 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.9.2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.10.0.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.10.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.8.4 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.9.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.8.3 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.9.0 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.8.2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.9.0.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js