import React from 'react'; import { mount } from 'enzyme'; import Input from '..'; import Form from '../../form'; const { TextArea } = Input; const delay = timeout => new Promise(resolve => setTimeout(resolve, timeout)); describe('Input', () => { it('should support maxLength', async () => { const wrapper = mount( ); expect(wrapper).toMatchSnapshot(); }); }); describe('TextArea', () => { it('should auto calculate height according to content length', async () => { const wrapper = mount(