@@ -3,7 +3,7 @@ import { Component, ViewChild, DebugElement, OnInit, ElementRef } from '@angular
3
3
import { TestBed , tick , fakeAsync , waitForAsync } from '@angular/core/testing' ;
4
4
import { FormsModule , UntypedFormGroup , UntypedFormBuilder , UntypedFormControl , Validators , ReactiveFormsModule , NgForm , NgControl } from '@angular/forms' ;
5
5
import { By } from '@angular/platform-browser' ;
6
- import { IgxDropDownModule , IgxDropDownItemComponent } from '../drop-down/public_api' ;
6
+ import { IgxDropDownModule , IgxDropDownItemComponent , IgxDropDownItemBaseDirective } from '../drop-down/public_api' ;
7
7
import { IgxIconModule } from '../icon/public_api' ;
8
8
import { IgxInputGroupModule , IgxHintDirective } from '../input-group/public_api' ;
9
9
import { NoopAnimationsModule } from '@angular/platform-browser/animations' ;
@@ -1205,7 +1205,7 @@ describe('igxSelect', () => {
1205
1205
spyOn ( select . selectionChanging , 'emit' ) ;
1206
1206
spyOn ( select , 'selectItem' ) . and . callThrough ( ) ;
1207
1207
const args : ISelectionEventArgs = {
1208
- oldSelection : undefined ,
1208
+ oldSelection : < IgxDropDownItemBaseDirective > { } ,
1209
1209
newSelection : selectedItem ,
1210
1210
cancel : false
1211
1211
} ;
@@ -1239,7 +1239,7 @@ describe('igxSelect', () => {
1239
1239
spyOn ( select . selectionChanging , 'emit' ) ;
1240
1240
spyOn ( select , 'selectItem' ) . and . callThrough ( ) ;
1241
1241
const args : ISelectionEventArgs = {
1242
- oldSelection : undefined ,
1242
+ oldSelection : < IgxDropDownItemBaseDirective > { } ,
1243
1243
newSelection : selectedItem ,
1244
1244
cancel : false
1245
1245
} ;
@@ -1269,7 +1269,7 @@ describe('igxSelect', () => {
1269
1269
spyOn ( select . selectionChanging , 'emit' ) ;
1270
1270
spyOn ( select , 'selectItem' ) . and . callThrough ( ) ;
1271
1271
const args : ISelectionEventArgs = {
1272
- oldSelection : undefined ,
1272
+ oldSelection : < IgxDropDownItemBaseDirective > { } ,
1273
1273
newSelection : selectedItem ,
1274
1274
cancel : false
1275
1275
} ;
@@ -1341,7 +1341,7 @@ describe('igxSelect', () => {
1341
1341
let selectedItem = select . items [ 4 ] ;
1342
1342
spyOn ( select . selectionChanging , 'emit' ) ;
1343
1343
const args : ISelectionEventArgs = {
1344
- oldSelection : undefined ,
1344
+ oldSelection : < IgxDropDownItemBaseDirective > { } ,
1345
1345
newSelection : selectedItem ,
1346
1346
cancel : false
1347
1347
} ;
0 commit comments