Sha256: 456bb6d0820c3c302a318cb5c7c6d445eb822aff880108a66e2a8768b061cc3a

Contents?: true

Size: 932 Bytes

Versions: 158

Compression:

Stored size: 932 Bytes

Contents

import React from 'react';
import thunk from 'redux-thunk';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import configureMockStore from 'redux-mock-store';
import RepositorySetRepository from '../RepositorySetRepository';

const mockStore = configureMockStore([thunk]);
const store = mockStore({});

describe('RepositorySetRepository Component', () => {
  let shallowWrapper;
  beforeEach(() => {
    shallowWrapper = shallow(<RepositorySetRepository
      store={store}
      contentId={1}
      productId={1}
      label="some label"
      displayArch="foo"
      releaseVer="1.1.1"
      type="foo"
      enabledPagination={{}}
      setRepositoryEnabled={() => {}}
      loadEnabledRepos={() => {}}
      enableRepository={() => {}}
    />);
  });

  afterEach(() => {
    store.clearActions();
  });

  it('should render', async () => {
    expect(toJson(shallowWrapper)).toMatchSnapshot();
  });
});

Version data entries

158 entries across 158 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.15.0.rc1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.14.1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.14.0 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.14.0.rc3 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.14.0.rc2 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.14.0.rc1.1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.14.0.rc1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.13.1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.13.0 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.12.1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.13.0.rc1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.12.0 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.12.0.rc3 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.12.0.rc2 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.12.0.rc1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.11.1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.11.0 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.11.0.rc2 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.11.0.rc1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js