This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ describe('ngMessages', function() {
517
517
$rootScope . $digest ( ) ; // The next digest triggers the error
518
518
519
519
// Make sure removing the element triggers the deregistration in ngMessages
520
- expect ( trim ( deregisterSpy . calls . mostRecent ( ) . args [ 0 ] . nodeValue ) ) . toBe ( 'ngMessage: a' ) ;
520
+ expect ( trim ( deregisterSpy . mostRecentCall . args [ 0 ] . nodeValue ) ) . toBe ( 'ngMessage: a' ) ;
521
521
expect ( messageChildren ( element ) . length ) . toBe ( 0 ) ;
522
522
} ) ;
523
523
} ) ;
@@ -558,7 +558,7 @@ describe('ngMessages', function() {
558
558
$rootScope . $digest ( ) ; // The next digest triggers the error
559
559
560
560
// Make sure removing the element triggers the deregistration in ngMessages
561
- expect ( trim ( deregisterSpy . calls . mostRecent ( ) . args [ 0 ] . nodeValue ) ) . toBe ( 'ngMessage: b' ) ;
561
+ expect ( trim ( deregisterSpy . mostRecentCall . args [ 0 ] . nodeValue ) ) . toBe ( 'ngMessage: b' ) ;
562
562
expect ( messageChildren ( element ) . length ) . toBe ( 1 ) ;
563
563
expect ( trim ( element . text ( ) ) ) . toEqual ( 'A' ) ;
564
564
} ) ;
@@ -794,7 +794,7 @@ describe('ngMessages', function() {
794
794
jqLite ( nodeB ) . remove ( ) ;
795
795
796
796
// Make sure removing the element triggers the deregistration in ngMessages
797
- expect ( trim ( deregisterSpy . calls . mostRecent ( ) . args [ 0 ] . nodeValue ) ) . toBe ( 'ngMessage: b' ) ;
797
+ expect ( trim ( deregisterSpy . mostRecentCall . args [ 0 ] . nodeValue ) ) . toBe ( 'ngMessage: b' ) ;
798
798
799
799
$rootScope . $apply ( 'items.a = true' ) ;
800
800
You can’t perform that action at this time.
0 commit comments