From: Yuchao Date: Fri, 10 Nov 2023 06:37:46 +0000 (+1100) Subject: test(apiWatch): better indicate array pre & new values are the same object (#7251) X-Git-Tag: v3.3.9~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34453560855e1402805a3a0298930bf765b3a1eb;p=thirdparty%2Fvuejs%2Fcore.git test(apiWatch): better indicate array pre & new values are the same object (#7251) --- diff --git a/packages/runtime-core/__tests__/apiWatch.spec.ts b/packages/runtime-core/__tests__/apiWatch.spec.ts index f24ce80b9d..dcb1d6a5f2 100644 --- a/packages/runtime-core/__tests__/apiWatch.spec.ts +++ b/packages/runtime-core/__tests__/apiWatch.spec.ts @@ -91,7 +91,7 @@ describe('api: watch', () => { array.push(1) await nextTick() expect(spy).toBeCalledTimes(1) - expect(spy).toBeCalledWith([1], expect.anything(), expect.anything()) + expect(spy).toBeCalledWith([1], [1], expect.anything()) }) it('should not fire if watched getter result did not change', async () => {