mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -06:00
22 lines
442 B
TypeScript
22 lines
442 B
TypeScript
import React from 'react';
|
|
import { shallow } from 'enzyme';
|
|
import OrgProfile, { Props } from './OrgProfile';
|
|
|
|
const setup = () => {
|
|
const props: Props = {
|
|
orgName: 'Main org',
|
|
onSubmit: jest.fn(),
|
|
onOrgNameChange: jest.fn(),
|
|
};
|
|
|
|
return shallow(<OrgProfile {...props} />);
|
|
};
|
|
|
|
describe('Render', () => {
|
|
it('should render component', () => {
|
|
const wrapper = setup();
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|