From: Rustin Date: Mon, 20 Jan 2020 14:43:58 +0000 (+0800) Subject: test(runtime-core): modify test case to set different value (#620) X-Git-Tag: v3.0.0-alpha.3~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=787ac5f74e581de660ebe993979563cf70ca6212;p=thirdparty%2Fvuejs%2Fcore.git test(runtime-core): modify test case to set different value (#620) --- diff --git a/packages/runtime-core/__tests__/apiWatch.spec.ts b/packages/runtime-core/__tests__/apiWatch.spec.ts index a1fcd6f20d..15a0765f97 100644 --- a/packages/runtime-core/__tests__/apiWatch.spec.ts +++ b/packages/runtime-core/__tests__/apiWatch.spec.ts @@ -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 () => {