Sha256: 25e88ee8b9d5da08574219df09d889f32858dcdb99be9401d25eba5943453f7c

Contents?: true

Size: 814 Bytes

Versions: 63

Compression:

Stored size: 814 Bytes

Contents

import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import ContentTable from '../../../components/Content/ContentTable';
import TableSchema from '../../ModuleStreams/ModuleStreamsTableSchema';
import { Table } from '../../../components/pf3Table';

describe('Module streams table', () => {
  it('should render and contain appropiate components', async () => {
    const moduleStreams = {
      loading: false, results: [], pagination: {}, itemCount: 0,
    };
    const onPaginationChange = () => {};

    const wrapper = shallow(<ContentTable
      content={moduleStreams}
      tableSchema={TableSchema}
      onPaginationChange={onPaginationChange}
    />);

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

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.15.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.14.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.14.0 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.14.0.rc3 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.14.0.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.14.0.rc1.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.14.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.13.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.13.0 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.12.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.13.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.12.0 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.12.0.rc3 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.12.0.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.12.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.11.1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.11.0 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.11.0.rc2 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js
katello-4.11.0.rc1 webpack/scenes/ModuleStreams/__tests__/ModuleStreamsTable.test.js