@@ -3,7 +3,7 @@ import { Component, ViewChild, DebugElement, OnInit, ElementRef } from '@angular
33import { TestBed , tick , fakeAsync , waitForAsync } from '@angular/core/testing' ;
44import { FormsModule , UntypedFormGroup , UntypedFormBuilder , UntypedFormControl , Validators , ReactiveFormsModule , NgForm , NgControl } from '@angular/forms' ;
55import { By } from '@angular/platform-browser' ;
6- import { IgxDropDownModule , IgxDropDownItemComponent } from '../drop-down/public_api' ;
6+ import { IgxDropDownModule , IgxDropDownItemComponent , IgxDropDownItemBaseDirective } from '../drop-down/public_api' ;
77import { IgxIconModule } from '../icon/public_api' ;
88import { IgxInputGroupModule , IgxHintDirective } from '../input-group/public_api' ;
99import { NoopAnimationsModule } from '@angular/platform-browser/animations' ;
@@ -1205,7 +1205,7 @@ describe('igxSelect', () => {
12051205 spyOn ( select . selectionChanging , 'emit' ) ;
12061206 spyOn ( select , 'selectItem' ) . and . callThrough ( ) ;
12071207 const args : ISelectionEventArgs = {
1208- oldSelection : undefined ,
1208+ oldSelection : < IgxDropDownItemBaseDirective > { } ,
12091209 newSelection : selectedItem ,
12101210 cancel : false
12111211 } ;
@@ -1239,7 +1239,7 @@ describe('igxSelect', () => {
12391239 spyOn ( select . selectionChanging , 'emit' ) ;
12401240 spyOn ( select , 'selectItem' ) . and . callThrough ( ) ;
12411241 const args : ISelectionEventArgs = {
1242- oldSelection : undefined ,
1242+ oldSelection : < IgxDropDownItemBaseDirective > { } ,
12431243 newSelection : selectedItem ,
12441244 cancel : false
12451245 } ;
@@ -1269,7 +1269,7 @@ describe('igxSelect', () => {
12691269 spyOn ( select . selectionChanging , 'emit' ) ;
12701270 spyOn ( select , 'selectItem' ) . and . callThrough ( ) ;
12711271 const args : ISelectionEventArgs = {
1272- oldSelection : undefined ,
1272+ oldSelection : < IgxDropDownItemBaseDirective > { } ,
12731273 newSelection : selectedItem ,
12741274 cancel : false
12751275 } ;
@@ -1341,7 +1341,7 @@ describe('igxSelect', () => {
13411341 let selectedItem = select . items [ 4 ] ;
13421342 spyOn ( select . selectionChanging , 'emit' ) ;
13431343 const args : ISelectionEventArgs = {
1344- oldSelection : undefined ,
1344+ oldSelection : < IgxDropDownItemBaseDirective > { } ,
13451345 newSelection : selectedItem ,
13461346 cancel : false
13471347 } ;
0 commit comments