input-number: fix user input parsing (#9166)

This commit is contained in:
Jiewei Qian
2018-01-09 14:08:46 +08:00
committed by baiyaaaaa
parent 837354df3b
commit 15d528c768
5 changed files with 4 additions and 31 deletions

View File

@@ -285,7 +285,7 @@ describe('InputNumber', () => {
});
it('emit on input', done => {
vm.$refs.compo.handleInput('3');
vm.$refs.compo.handleInputChange('3');
setTimeout(_ => {
expect(spy.calledOnce).to.be.true;
expect(spy.args[0][0]).to.equal(3);