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.7.1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.6.2.1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.6.2 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.7.0 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.6.1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.7.0.rc2 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.7.0.rc1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.4.2.2 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.4.2.1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.4.2 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.5.1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.6.0 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.6.0.rc2 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.6.0.rc1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.5.0 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.5.0.rc2 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.4.1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.5.0.rc1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.4.0.2 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js
katello-4.4.0.1 webpack/scenes/RedHatRepositories/components/RepositorySetRepository/__test__/RepositorySetRepository.test.js