@@ -7,7 +7,7 @@ import { Property } from '../../models/Property';
7
7
8
8
@Component ( {
9
9
template : `
10
- <ff4j-feature-card [feature]="feature"></ff4j-feature-card>
10
+ <ff4j-feature-card [feature]="feature"></ff4j-feature-card>
11
11
`
12
12
} )
13
13
class TesteeFeatureCardComponent {
@@ -30,7 +30,7 @@ describe('FeatureCardComponent', () => {
30
30
initContext ( FeatureCardComponent , TesteeFeatureCardComponent , moduleMetaData ) ;
31
31
32
32
it ( 'should create' , function ( this : Context ) {
33
- this . detectChanges ( ) ;
33
+ this . fixture . detectChanges ( ) ;
34
34
expect ( this . hostComponent ) . toBeTruthy ( ) ;
35
35
expect ( this . testedComponent ) . toBeTruthy ( ) ;
36
36
} ) ;
@@ -41,15 +41,15 @@ describe('FeatureCardComponent', () => {
41
41
} ) ;
42
42
43
43
it ( 'should have got the input value for feature' , function ( this : Context ) {
44
- this . detectChanges ( ) ;
44
+ this . fixture . detectChanges ( ) ;
45
45
expect ( this . testedComponent . feature . uid ) . toBe ( 'Feature_UID' ) ;
46
46
expect ( this . testedComponent . feature . description ) . toBe ( `Feature Card Description` ) ;
47
47
expect ( this . testedComponent . feature . group ) . toBe ( 'Group Name' ) ;
48
48
expect ( this . testedComponent . feature . enable ) . toBeFalsy ( ) ;
49
49
expect ( this . testedComponent . feature . permissions . length ) . toEqual ( 4 ) ;
50
50
// on change should apply
51
51
this . hostComponent . feature . enable = true ;
52
- this . detectChanges ( ) ;
52
+ this . fixture . detectChanges ( ) ;
53
53
expect ( this . testedComponent . feature . enable ) . toBeTruthy ( ) ;
54
54
} ) ;
55
55
@@ -63,7 +63,7 @@ describe('FeatureCardComponent', () => {
63
63
value : 'go!' ,
64
64
fixedValues : [ ]
65
65
} ) ;
66
- this . detectChanges ( ) ;
66
+ this . fixture . detectChanges ( ) ;
67
67
let resultValues = this . testedComponent . getPropertiesValues ( properties ) ;
68
68
expect ( resultValues ) . toEqual ( [ 'SampleProperty = go!' ] ) ;
69
69
// if customProperties is undefined or empty it should also result in empty
0 commit comments