test: update input test
parent
fd319389a7
commit
dfbd183429
|
@ -4,10 +4,12 @@ import Input from '..';
|
||||||
import Form from '../../form';
|
import Form from '../../form';
|
||||||
import focusTest from '../../../tests/shared/focusTest';
|
import focusTest from '../../../tests/shared/focusTest';
|
||||||
|
|
||||||
const { TextArea } = Input;
|
const { TextArea, Password } = Input;
|
||||||
|
|
||||||
describe('Input', () => {
|
describe('Input', () => {
|
||||||
focusTest(Input);
|
focusTest(Input);
|
||||||
|
focusTest(TextArea);
|
||||||
|
focusTest(Password);
|
||||||
|
|
||||||
it('should support maxLength', async () => {
|
it('should support maxLength', async () => {
|
||||||
const wrapper = mount(Input, { attrs: { maxLength: 3 }, sync: false });
|
const wrapper = mount(Input, { attrs: { maxLength: 3 }, sync: false });
|
||||||
|
|
Loading…
Reference in New Issue