import React from 'react'; import { shallow, mount } from 'enzyme'; import Form from '..'; describe('Form', () => { it('hideRequiredMark', () => { const wrapper = shallow(
); expect(wrapper.hasClass('ant-form-hide-required-mark')).toBe(true); }); describe('wrappedComponentRef', () => { it('warns on functional component', () => { const spy = jest.spyOn(console, 'error').mockImplementation(() => {}); const TestForm = () => ; const Wrapped = Form.create()(TestForm); mount(