Sha256: 06ce7738bd83661a39d18f8d04499180278a4e5d267c1dc95dcbbc31e156ddaf

Contents?: true

Size: 823 Bytes

Versions: 87

Compression:

Stored size: 823 Bytes

Contents

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

jest.mock('foremanReact/components/Pagination/PaginationWrapper', () => (<div>Pagination Mock</div>));

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(ContentPage)).toHaveLength(1);
  });
});

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
katello-4.3.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.2.2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.3.0 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.3.0.rc4 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.3.0.rc3 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.3.0.rc2.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.3.0.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.3.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.2.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.2.0.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.1.4 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.0.3 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.2.0.1.rc3 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.18.5 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.2.0.1.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.2.0.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.1.3 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.2.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.0.2.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.1.2.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js