@@ -20,7 +20,7 @@ export default function () {
2020 . createComponent ( NoRenderTestComponent ) ;
2121 fixture . detectChanges ( ) ;
2222 expect ( fixture . debugElement . childNodes . length ) . toBe ( 1 ) ;
23- expect ( fixture . debugElement . childNodes [ 0 ] . nativeNode . data ) . toBe ( 'template bindings={} ' ) ;
23+ expect ( fixture . debugElement . childNodes [ 0 ] . nativeNode . type ) . toBe ( 'comment ' ) ;
2424 } ) ;
2525 it ( 'should render the element at runtime' , ( ) => {
2626 const fixture = TestBed
@@ -31,7 +31,7 @@ export default function () {
3131 . createComponent ( NoRenderTestComponent ) ;
3232 fixture . detectChanges ( ) ;
3333 expect ( fixture . debugElement . childNodes . length ) . toBe ( 2 ) ;
34- expect ( fixture . debugElement . childNodes [ 0 ] . nativeNode . data ) . toBe ( 'template bindings={} ' ) ;
34+ expect ( fixture . debugElement . childNodes [ 0 ] . nativeNode . type ) . toBe ( 'comment ' ) ;
3535 expect ( fixture . debugElement . childNodes [ 1 ] . nativeNode . name ) . toBe ( 'div' ) ;
3636 } ) ;
3737 } ) ;
@@ -52,7 +52,7 @@ export default function () {
5252 . createComponent ( RenderTestComponent ) ;
5353 fixture . detectChanges ( ) ;
5454 expect ( fixture . debugElement . childNodes . length ) . toBe ( 2 ) ;
55- expect ( fixture . debugElement . childNodes [ 0 ] . nativeNode . data ) . toBe ( 'template bindings={} ' ) ;
55+ expect ( fixture . debugElement . childNodes [ 0 ] . nativeNode . type ) . toBe ( 'comment ' ) ;
5656 expect ( fixture . debugElement . childNodes [ 1 ] . nativeNode . name ) . toBe ( 'div' ) ;
5757 } ) ;
5858 it ( 'should NOT render the element at runtime' , ( ) => {
@@ -64,7 +64,7 @@ export default function () {
6464 . createComponent ( RenderTestComponent ) ;
6565 fixture . detectChanges ( ) ;
6666 expect ( fixture . debugElement . childNodes . length ) . toBe ( 1 ) ;
67- expect ( fixture . debugElement . childNodes [ 0 ] . nativeNode . data ) . toBe ( 'template bindings={} ' ) ;
67+ expect ( fixture . debugElement . childNodes [ 0 ] . nativeNode . type ) . toBe ( 'comment ' ) ;
6868 } ) ;
6969 } ) ;
7070}
0 commit comments