5
5
ViewChild ,
6
6
ViewChildren ,
7
7
} from '@angular/core' ;
8
- import { RxStrategyProvider } from '@rx-angular/cdk/render-strategies' ;
9
- import { asapScheduler , delay , Observable , ReplaySubject , Subject } from 'rxjs' ;
10
8
import { TestBed } from '@angular/core/testing' ;
9
+ import { RxStrategyProvider } from '@rx-angular/cdk/render-strategies' ;
10
+ import { Observable , ReplaySubject , Subject , asapScheduler , delay } from 'rxjs' ;
11
11
import { RxLet } from '../let.directive' ;
12
12
13
13
@Component ( {
@@ -104,7 +104,7 @@ describe('LetDirective parent notification', () => {
104
104
105
105
it ( 'should update parent' , ( done ) => {
106
106
fixture . detectChanges ( ) ;
107
- const cdRef = componentInstance . letChildren . first . cdRef ;
107
+ const cdRef = ( componentInstance . letChildren . first as any ) . cdRef ;
108
108
cdRef . detectChanges = jest . fn ( ) ;
109
109
const behavior = strategyProvider . strategies [ strategy ] . behavior ;
110
110
componentInstance . rendered$
@@ -122,8 +122,8 @@ describe('LetDirective parent notification', () => {
122
122
123
123
it ( 'should scope parent notifications' , ( done ) => {
124
124
fixture . detectChanges ( ) ;
125
- const cdRef = componentInstance . letChildren . first . cdRef ;
126
- const cdRef2 = componentInstance . letChildren . last . cdRef ;
125
+ const cdRef = ( componentInstance . letChildren . first as any ) . cdRef ;
126
+ const cdRef2 = ( componentInstance . letChildren . last as any ) . cdRef ;
127
127
expect ( cdRef2 ) . toEqual ( cdRef ) ;
128
128
cdRef . detectChanges = jest . fn ( ) ;
129
129
const behavior = strategyProvider . strategies [ strategy ] . behavior ;
@@ -167,7 +167,7 @@ describe('LetDirective parent notification', () => {
167
167
168
168
it ( 'should not update parent' , ( done ) => {
169
169
fixture . detectChanges ( ) ;
170
- const cdRef = componentInstance . letChildren . first . cdRef ;
170
+ const cdRef = ( componentInstance . letChildren . first as any ) . cdRef ;
171
171
cdRef . detectChanges = jest . fn ( ) ;
172
172
const behavior = strategyProvider . strategies [ strategy ] . behavior ;
173
173
componentInstance . rendered$
0 commit comments