form.spec.jsx 382 B

1234567891011121314151617
  1. import React from 'react';
  2. import {shallow} from 'enzyme';
  3. import {Form} from 'app/components/forms';
  4. describe('Form', function() {
  5. describe('render()', function() {
  6. it('renders with children', function() {
  7. const wrapper = shallow(
  8. <Form onSubmit={() => {}}>
  9. <hr />
  10. </Form>
  11. );
  12. expect(wrapper).toMatchSnapshot();
  13. });
  14. });
  15. });