[bugfix] Field: allow negative number when type is number (#889)

This commit is contained in:
neverland
2018-04-18 16:09:28 +08:00
committed by GitHub
parent 602f8e0b50
commit b206409b8c
2 changed files with 5 additions and 3 deletions

View File

@@ -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);
});