mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
[bugfix] Field: allow negative number when type is number (#889)
This commit is contained in:
@@ -57,12 +57,13 @@ describe('Field', () => {
|
||||
it('create a textarea field', (done) => {
|
||||
wrapper = mount(Field, {
|
||||
propsData: {
|
||||
type: 'textarea'
|
||||
type: 'textarea',
|
||||
autosize: true
|
||||
}
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
expect(wrapper.hasClass('van-field--min-height')).to.be.true;
|
||||
expect(wrapper.hasClass('van-field')).to.be.true;
|
||||
done();
|
||||
}, 50);
|
||||
});
|
||||
|
Reference in New Issue
Block a user