mirror of
https://github.com/youzan/vant.git
synced 2026-05-16 01:07:43 +08:00
test(Form): improve test coverage
This commit is contained in:
@@ -300,3 +300,17 @@ test('name prop', () => {
|
||||
});
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('call focus method before mounted', done => {
|
||||
mount(Field, {
|
||||
created() {
|
||||
this.focus();
|
||||
this.blur();
|
||||
done();
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
test('destroy field', () => {
|
||||
mount(Field).destroy();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user