Browse Source

test: update input test

pull/1534/head
tanjinzhou 5 years ago
parent
commit
dfbd183429
  1. 4
      components/input/__tests__/index.test.js

4
components/input/__tests__/index.test.js

@ -4,10 +4,12 @@ import Input from '..';
import Form from '../../form';
import focusTest from '../../../tests/shared/focusTest';
const { TextArea } = Input;
const { TextArea, Password } = Input;
describe('Input', () => {
focusTest(Input);
focusTest(TextArea);
focusTest(Password);
it('should support maxLength', async () => {
const wrapper = mount(Input, { attrs: { maxLength: 3 }, sync: false });

Loading…
Cancel
Save