1234567891011121314151617181920212223 |
- 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(<BasicSettings {...props} />);
- };
- describe('Render', () => {
- it('should render component', () => {
- const wrapper = setup();
- expect(wrapper).toMatchSnapshot();
- });
- });
|