Skip to content

Commit

Permalink
test(runtime-core): modify test case to set different value (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 authored and yyx990803 committed Jan 20, 2020
1 parent 1542b5e commit 787ac5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/__tests__/apiWatch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 787ac5f

Please sign in to comment.