From 19bbedec9903782f55544ad4f0fa4654d09ff6ab Mon Sep 17 00:00:00 2001 From: defcc Date: Thu, 5 Jan 2017 11:30:37 +0800 Subject: [PATCH] update test case --- test/unit/features/directives/model-checkbox.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/features/directives/model-checkbox.spec.js b/test/unit/features/directives/model-checkbox.spec.js index 1e6f68b04d0..33794779eb8 100644 --- a/test/unit/features/directives/model-checkbox.spec.js +++ b/test/unit/features/directives/model-checkbox.spec.js @@ -243,17 +243,17 @@ describe('Directive v-model checkbox', () => { it('should get updated with model when in focus', (done) => { const vm = new Vue({ data: { - a: '2' + a: 2 }, - template: '' + template: '' }).$mount() document.body.appendChild(vm.$el) vm.$el.click() waitForUpdate(() => { - expect(vm.$el.checked).toBe(true) + expect(vm.$el.checked).toBe(false) vm.a = 2 }).then(() => { - expect(vm.$el.checked).toBe(false) + expect(vm.$el.checked).toBe(true) }).then(done) })