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

This commit is contained in:
Yuchao 2023-11-10 17:37:46 +11:00 committed by GitHub
parent a5491e1cdd
commit 3445356085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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