OrgProfile.test.tsx 442 B

123456789101112131415161718192021
  1. import React from 'react';
  2. import { shallow } from 'enzyme';
  3. import OrgProfile, { Props } from './OrgProfile';
  4. const setup = () => {
  5. const props: Props = {
  6. orgName: 'Main org',
  7. onSubmit: jest.fn(),
  8. onOrgNameChange: jest.fn(),
  9. };
  10. return shallow(<OrgProfile {...props} />);
  11. };
  12. describe('Render', () => {
  13. it('should render component', () => {
  14. const wrapper = setup();
  15. expect(wrapper).toMatchSnapshot();
  16. });
  17. });