This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1545,25 +1545,25 @@ describe('$compile', function() {
1545
1545
it ( 'should allow nested transclude directives with sync template containing sync template' , inject ( function ( $compile , $rootScope ) {
1546
1546
element = $compile ( '<div sync-sync>transcluded content</div>' ) ( $rootScope ) ;
1547
1547
$rootScope . $digest ( ) ;
1548
- expect ( element . text ( ) . trim ( ) ) . toEqual ( 'transcluded content' ) ;
1548
+ expect ( trim ( element . text ( ) ) ) . toEqual ( 'transcluded content' ) ;
1549
1549
} ) ) ;
1550
1550
1551
1551
it ( 'should allow nested transclude directives with sync template containing async template' , inject ( function ( $compile , $rootScope ) {
1552
1552
element = $compile ( '<div sync-async>transcluded content</div>' ) ( $rootScope ) ;
1553
1553
$rootScope . $digest ( ) ;
1554
- expect ( element . text ( ) . trim ( ) ) . toEqual ( 'transcluded content' ) ;
1554
+ expect ( trim ( element . text ( ) ) ) . toEqual ( 'transcluded content' ) ;
1555
1555
} ) ) ;
1556
1556
1557
1557
it ( 'should allow nested transclude directives with async template containing sync template' , inject ( function ( $compile , $rootScope ) {
1558
1558
element = $compile ( '<div async-sync>transcluded content</div>' ) ( $rootScope ) ;
1559
1559
$rootScope . $digest ( ) ;
1560
- expect ( element . text ( ) . trim ( ) ) . toEqual ( 'transcluded content' ) ;
1560
+ expect ( trim ( element . text ( ) ) ) . toEqual ( 'transcluded content' ) ;
1561
1561
} ) ) ;
1562
1562
1563
1563
it ( 'should allow nested transclude directives with async template containing asynch template' , inject ( function ( $compile , $rootScope ) {
1564
1564
element = $compile ( '<div async-async>transcluded content</div>' ) ( $rootScope ) ;
1565
1565
$rootScope . $digest ( ) ;
1566
- expect ( element . text ( ) . trim ( ) ) . toEqual ( 'transcluded content' ) ;
1566
+ expect ( trim ( element . text ( ) ) ) . toEqual ( 'transcluded content' ) ;
1567
1567
} ) ) ;
1568
1568
} ) ;
1569
1569
You can’t perform that action at this time.
0 commit comments