test(runtime-core): modify test case to set different value (#620)

This commit is contained in:
Rustin 2020-01-20 22:43:58 +08:00 committed by Evan You
parent 1542b5eb6f
commit 787ac5f74e

View 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 () => {