Skip to content

Commit 787ac5f

Browse files
Rustin170506yyx990803
authored andcommitted
test(runtime-core): modify test case to set different value (#620)
1 parent 1542b5e commit 787ac5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-core/__tests__/apiWatch.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ describe('api: watch', () => {
119119
expect(dummy).toMatchObject([[1, false], []])
120120

121121
state.count++
122-
status.value = false
122+
status.value = true
123123
await nextTick()
124-
expect(dummy).toMatchObject([[2, false], [1, false]])
124+
expect(dummy).toMatchObject([[2, true], [1, false]])
125125
})
126126

127127
it('stopping the watcher', async () => {

0 commit comments

Comments
 (0)