File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3872,20 +3872,19 @@ describe('parser', function() {
3872
3872
it ( 'should watch ES6 object computed property changes' , function ( ) {
3873
3873
var count = 0 ;
3874
3874
var values = [ ] ;
3875
- var firstValue = { 'undefined' : true } ;
3876
3875
3877
- scope . $watch ( '{[a]: true}' , function ( val , oldVal ) {
3876
+ scope . $watch ( '{[a]: true}' , function ( val ) {
3878
3877
count ++ ;
3879
3878
values . push ( val ) ;
3880
3879
} , true ) ;
3881
3880
3882
3881
scope . $digest ( ) ;
3883
3882
expect ( count ) . toBe ( 1 ) ;
3884
- expect ( values [ 0 ] ) . toEqual ( firstValue ) ;
3883
+ expect ( values [ 0 ] ) . toEqual ( { 'undefined' : true } ) ;
3885
3884
3886
3885
scope . $digest ( ) ;
3887
3886
expect ( count ) . toBe ( 1 ) ;
3888
- expect ( values [ 0 ] ) . toEqual ( firstValue ) ;
3887
+ expect ( values [ 0 ] ) . toEqual ( { 'undefined' : true } ) ;
3889
3888
3890
3889
scope . a = true ;
3891
3890
scope . $digest ( ) ;
You can’t perform that action at this time.
0 commit comments