@@ -20,7 +20,7 @@ export default function () {
20
20
. createComponent ( NoRenderTestComponent ) ;
21
21
fixture . detectChanges ( ) ;
22
22
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 ' ) ;
24
24
} ) ;
25
25
it ( 'should render the element at runtime' , ( ) => {
26
26
const fixture = TestBed
@@ -31,7 +31,7 @@ export default function () {
31
31
. createComponent ( NoRenderTestComponent ) ;
32
32
fixture . detectChanges ( ) ;
33
33
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 ' ) ;
35
35
expect ( fixture . debugElement . childNodes [ 1 ] . nativeNode . name ) . toBe ( 'div' ) ;
36
36
} ) ;
37
37
} ) ;
@@ -52,7 +52,7 @@ export default function () {
52
52
. createComponent ( RenderTestComponent ) ;
53
53
fixture . detectChanges ( ) ;
54
54
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 ' ) ;
56
56
expect ( fixture . debugElement . childNodes [ 1 ] . nativeNode . name ) . toBe ( 'div' ) ;
57
57
} ) ;
58
58
it ( 'should NOT render the element at runtime' , ( ) => {
@@ -64,7 +64,7 @@ export default function () {
64
64
. createComponent ( RenderTestComponent ) ;
65
65
fixture . detectChanges ( ) ;
66
66
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 ' ) ;
68
68
} ) ;
69
69
} ) ;
70
70
}
0 commit comments