File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1219,15 +1219,17 @@ describe('Scope', function() {
12191219 var parent = $rootScope . $new ( ) ,
12201220 child1 = parent . $new ( ) ,
12211221 child2 = parent . $new ( ) ,
1222- grandChild = child1 . $new ( ) ;
1223- parent . $destroy ( ) ;
1222+ grandChild1 = child1 . $new ( ) ,
1223+ grandChild2 = child1 . $new ( ) ;
12241224
1225+ child1 . $destroy ( ) ;
12251226 $rootScope . $digest ( ) ;
12261227
1227- expect ( isDisconnected ( parent ) ) . toBe ( true ) ;
1228+ expect ( isDisconnected ( parent ) ) . toBe ( false ) ;
12281229 expect ( isDisconnected ( child1 ) ) . toBe ( true ) ;
1229- expect ( isDisconnected ( child2 ) ) . toBe ( true ) ;
1230- expect ( isDisconnected ( grandChild ) ) . toBe ( true ) ;
1230+ expect ( isDisconnected ( child2 ) ) . toBe ( false ) ;
1231+ expect ( isDisconnected ( grandChild1 ) ) . toBe ( true ) ;
1232+ expect ( isDisconnected ( grandChild2 ) ) . toBe ( true ) ;
12311233
12321234 function isDisconnected ( $scope ) {
12331235 return $scope . $$nextSibling === null &&
You can’t perform that action at this time.
0 commit comments