]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test(runtime-core): modify test case to set different value (#620)
authorRustin <rustin.liu@gmail.com>
Mon, 20 Jan 2020 14:43:58 +0000 (22:43 +0800)
committerEvan You <yyx990803@gmail.com>
Mon, 20 Jan 2020 14:43:58 +0000 (09:43 -0500)
packages/runtime-core/__tests__/apiWatch.spec.ts

index a1fcd6f20d83da400da5daa119eba990487281a5..15a0765f97e97e8540c9bb1a40c4424628d627fd 100644 (file)
@@ -119,9 +119,9 @@ describe('api: watch', () => {
     expect(dummy).toMatchObject([[1, false], []])
 
     state.count++
-    status.value = false
+    status.value = true
     await nextTick()
-    expect(dummy).toMatchObject([[2, false], [1, false]])
+    expect(dummy).toMatchObject([[2, true], [1, false]])
   })
 
   it('stopping the watcher', async () => {