import { shallow } from 'enzyme'; import React from 'react'; import BasicSettings, { Props } from './BasicSettings'; const setup = () => { const props: Props = { dataSourceName: 'Graphite', isDefault: false, onDefaultChange: jest.fn(), onNameChange: jest.fn(), }; return shallow(); }; describe('Render', () => { it('should render component', () => { const wrapper = setup(); expect(wrapper).toMatchSnapshot(); }); });