mirror of https://github.com/vuejs/core.git
test(apiWatch): better indicate array pre & new values are the same object (#7251)
This commit is contained in:
parent
a5491e1cdd
commit
3445356085
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue