Sha256: d20eb14c9e77d461b449e6c3ede60f4f2234cae090b46866edd885f1a11055bd
Contents?: true
Size: 606 Bytes
Versions: 66
Compression:
Stored size: 606 Bytes
Contents
import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import { mock as mockApi } from '../../mockRequest'; import Search from '../Search'; describe('Search component', () => { const getBaseProps = () => ({ onSearch: () => {}, getAutoCompleteParams: () => ({ endpoint: '/fake' }), }); describe('rendering', () => { it('renders correctly', () => { mockApi.onGet('/katello/api/v2/fake').reply(200, []); const component = shallow(<Search {...getBaseProps()} />); expect(toJson(component)).toMatchSnapshot(); }); }); });
Version data entries
66 entries across 66 versions & 1 rubygems