File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1219,15 +1219,17 @@ describe('Scope', function() {
1219
1219
var parent = $rootScope . $new ( ) ,
1220
1220
child1 = parent . $new ( ) ,
1221
1221
child2 = parent . $new ( ) ,
1222
- grandChild = child1 . $new ( ) ;
1223
- parent . $destroy ( ) ;
1222
+ grandChild1 = child1 . $new ( ) ,
1223
+ grandChild2 = child1 . $new ( ) ;
1224
1224
1225
+ child1 . $destroy ( ) ;
1225
1226
$rootScope . $digest ( ) ;
1226
1227
1227
- expect ( isDisconnected ( parent ) ) . toBe ( true ) ;
1228
+ expect ( isDisconnected ( parent ) ) . toBe ( false ) ;
1228
1229
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 ) ;
1231
1233
1232
1234
function isDisconnected ( $scope ) {
1233
1235
return $scope . $$nextSibling === null &&
You can’t perform that action at this time.
0 commit comments