Browse Source

chore(model-text.spec): add a missing check (#5093)

YOU 9 năm trước cách đây
mục cha
commit
c683caff3a

+ 1 - 0
test/unit/features/directives/model-text.spec.js

@@ -45,6 +45,7 @@ describe('Directive v-model text', () => {
     expect(vm.test).toBe(1)
     expect(vm.test).toBe(1)
     vm.$el.value = '2'
     vm.$el.value = '2'
     triggerEvent(vm.$el, 'input')
     triggerEvent(vm.$el, 'input')
+    expect(vm.test).toBe(2)
     // should let strings pass through
     // should let strings pass through
     vm.$el.value = 'f'
     vm.$el.value = 'f'
     triggerEvent(vm.$el, 'input')
     triggerEvent(vm.$el, 'input')