Przeglądaj źródła

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

Yuchao 2 lat temu
rodzic
commit
3445356085
1 zmienionych plików z 1 dodań i 1 usunięć
  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 () => {