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-3.17.3 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.0.0.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.18.1.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.17.2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-4.0.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.18.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.18.0 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.17.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.16.2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.18.0.rc2.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.18.0.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.17.0 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.18.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.17.0.rc2.2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.17.0.rc2.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.16.1.2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.16.1.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.17.0.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.16.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js
katello-3.17.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamPage.test.js