Skip to content

Commit 8be3aa4

Browse files
defccyyx990803
authored andcommitted
update test case (#4653)
1 parent e259fc3 commit 8be3aa4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: test/unit/features/directives/model-checkbox.spec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -243,17 +243,17 @@ describe('Directive v-model checkbox', () => {
243243
it('should get updated with model when in focus', (done) => {
244244
const vm = new Vue({
245245
data: {
246-
a: '2'
246+
a: 2
247247
},
248-
template: '<input type="checkbox" value="1" v-model="a"/>'
248+
template: '<input type="checkbox" v-model="a"/>'
249249
}).$mount()
250250
document.body.appendChild(vm.$el)
251251
vm.$el.click()
252252
waitForUpdate(() => {
253-
expect(vm.$el.checked).toBe(true)
253+
expect(vm.$el.checked).toBe(false)
254254
vm.a = 2
255255
}).then(() => {
256-
expect(vm.$el.checked).toBe(false)
256+
expect(vm.$el.checked).toBe(true)
257257
}).then(done)
258258
})
259259

0 commit comments

Comments
 (0)