Browse Source

test(apiWatch): better indicate array pre & new values are the same object (#7251)

Yuchao 2 năm trước cách đây
mục cha
commit
3445356085
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/runtime-core/__tests__/apiWatch.spec.ts

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