8000 make the test a bit more fault tolerent on sauce · Hsinwe/vue@e56778a · GitHub
[go: up one dir, main page]

Skip to content

Commit e56778a

Browse files
committed
make the test a bit more fault tolerent on sauce
1 parent 90c92fb commit e56778a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/unit/specs/directives/public/model_spec.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -711,17 +711,17 @@ describe('v-model', function () {
711711
expect(spy.calls.count()).toBe(1)
712712
expect(spy).toHaveBeenCalledWith('d', 'a')
713713
expect(vm.test).toBe('d')
714-
}, 150)
715-
setTimeout(function () {
716-
el.firstChild.value = 'e'
717-
// blur should trigger change instantly without debounce
718-
trigger(el.firstChild, 'blur')
719-
_.nextTick(function () {
720-
expect(spy.calls.count()).toBe(2)
721-
expect(spy).toHaveBeenCalledWith('e', 'd')
722-
expect(vm.test).toBe('e')
723-
done()
724-
})
714+
setTimeout(function () {
715+
el.firstChild.value = 'e'
716+
// blur should trigger change instantly without debounce
717+
trigger(el.firstChild, 'blur')
718+
_.nextTick(function () {
719+
expect(spy.calls.count()).toBe(2)
720+
expect(spy).toHaveBeenCalledWith('e', 'd')
721+
expect(vm.test).toBe('e')
722+
done()
723+
})
724+
}, 10)
725725
}, 200)
726726
})
727727

0 commit comments

Comments
 (0)
0