@@ -457,7 +457,7 @@ describe('api/watch', () => {
457
457
template : `<div>{{obj1.a}} {{obj2.a}}</div>` ,
458
458
} ) . $mount ( )
459
459
expect ( spy ) . toBeCalledTimes ( 1 )
460
- expect ( spy ) . toHaveBeenLastCalledWith ( [ 1 , 2 ] , undefined )
460
+ expect ( spy ) . toHaveBeenLastCalledWith ( [ 1 , 2 ] , [ ] )
461
461
obj1 . a = 2
462
462
obj2 . a = 3
463
463
@@ -491,7 +491,7 @@ describe('api/watch', () => {
491
491
template : `<div>{{a}} {{b}}</div>` ,
492
492
} ) . $mount ( )
493
493
expect ( spy ) . toBeCalledTimes ( 1 )
494
- expect ( spy ) . toHaveBeenLastCalledWith ( [ 1 , 1 ] , undefined )
494
+ expect ( spy ) . toHaveBeenLastCalledWith ( [ 1 , 1 ] , [ ] )
495
495
vm . a = 2
496
496
expect ( spy ) . toBeCalledTimes ( 1 )
497
497
waitForUpdate ( ( ) => {
@@ -553,7 +553,7 @@ describe('api/watch', () => {
553
553
} ,
554
554
} )
555
555
expect ( spy ) . toBeCalledTimes ( 1 )
556
- expect ( spy ) . toHaveBeenLastCalledWith ( [ 1 , 1 ] , undefined )
556
+ expect ( spy ) . toHaveBeenLastCalledWith ( [ 1 , 1 ] , [ ] )
557
557
vm . a = 2
558
558
expect ( spy ) . toBeCalledTimes ( 2 )
559
559
expect ( spy ) . toHaveBeenLastCalledWith ( [ 2 , 1 ] , [ 1 , 1 ] )
0 commit comments