BasicSettings.test.tsx 426 B

1234567891011121314151617181920
  1. import React from 'react';
  2. import { shallow } from 'enzyme';
  3. import BasicSettings, { Props } from './BasicSettings';
  4. const setup = () => {
  5. const props: Props = {
  6. dataSourceName: 'Graphite',
  7. onChange: jest.fn(),
  8. };
  9. return shallow(<BasicSettings {...props} />);
  10. };
  11. describe('Render', () => {
  12. it('should render component', () => {
  13. const wrapper = setup();
  14. expect(wrapper).toMatchSnapshot();
  15. });
  16. });