Skip to content

Commit 3445356

Browse files
authored
test(apiWatch): better indicate array pre & new values are the same object (#7251)
1 parent a5491e1 commit 3445356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/__tests__/apiWatch.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ describe('api: watch', () => {
9191
array.push(1)
9292
await nextTick()
9393
expect(spy).toBeCalledTimes(1)
94-
expect(spy).toBeCalledWith([1], expect.anything(), expect.anything())
94+
expect(spy).toBeCalledWith([1], [1], expect.anything())
9595
})
9696

9797
it('should not fire if watched getter result did not change', async () => {

0 commit comments

Comments
 (0)