|
|
@@ -711,17 +711,17 @@ describe('v-model', function () {
|
|
|
expect(spy.calls.count()).toBe(1)
|
|
|
expect(spy).toHaveBeenCalledWith('d', 'a')
|
|
|
expect(vm.test).toBe('d')
|
|
|
- }, 150)
|
|
|
- setTimeout(function () {
|
|
|
- el.firstChild.value = 'e'
|
|
|
- // blur should trigger change instantly without debounce
|
|
|
- trigger(el.firstChild, 'blur')
|
|
|
- _.nextTick(function () {
|
|
|
- expect(spy.calls.count()).toBe(2)
|
|
|
- expect(spy).toHaveBeenCalledWith('e', 'd')
|
|
|
- expect(vm.test).toBe('e')
|
|
|
- done()
|
|
|
- })
|
|
|
+ setTimeout(function () {
|
|
|
+ el.firstChild.value = 'e'
|
|
|
+ // blur should trigger change instantly without debounce
|
|
|
+ trigger(el.firstChild, 'blur')
|
|
|
+ _.nextTick(function () {
|
|
|
+ expect(spy.calls.count()).toBe(2)
|
|
|
+ expect(spy).toHaveBeenCalledWith('e', 'd')
|
|
|
+ expect(vm.test).toBe('e')
|
|
|
+ done()
|
|
|
+ })
|
|
|
+ }, 10)
|
|
|
}, 200)
|
|
|
})
|
|
|
|