@@ -28,7 +28,7 @@ import {
28
28
ComponentWithUnregistered ,
29
29
ComponentWithImperativeEvent ,
30
30
ComponentWithDeclarativeEvent ,
31
- ComponentWithMethods
31
+ ComponentWithoutProperties
32
32
} from "./components" ;
33
33
34
34
beforeEach ( function ( ) {
@@ -42,7 +42,7 @@ beforeEach(function() {
42
42
ComponentWithUnregistered ,
43
43
ComponentWithImperativeEvent ,
44
44
ComponentWithDeclarativeEvent ,
45
- ComponentWithMethods
45
+ ComponentWithoutProperties
46
46
] ,
47
47
schemas : [ CUSTOM_ELEMENTS_SCHEMA ]
48
48
} ) ;
@@ -149,11 +149,14 @@ describe("basic support", function() {
149
149
expect ( data ) . to . eql ( "Angular" ) ;
150
150
} ) ;
151
151
152
- it ( 'will not overwrite methods ' , function ( ) {
153
- let fixture = TestBed . createComponent ( ComponentWithMethods ) ;
152
+ it ( 'will not overwrite unwriteable properties ' , function ( ) {
153
+ let fixture = TestBed . createComponent ( ComponentWithoutProperties ) ;
154
154
fixture . detectChanges ( ) ;
155
155
let root = fixture . debugElement . nativeElement ;
156
- expect ( root . innerText ) . to . eql ( 'Success' )
156
+ let wc = root . querySelector ( "#wc" ) ;
157
+ expect ( wc . getAttribute ( 'method' ) ) . to . eql ( 'method' ) ;
158
+ expect ( wc . getAttribute ( 'getter' ) ) . to . eql ( 'getter' ) ;
159
+ expect ( wc . getAttribute ( 'readonly' ) ) . to . eql ( 'readonly' ) ;
157
160
} ) ;
158
161
} ) ;
159
162
0 commit comments