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