@@ -3948,7 +3948,6 @@ describe('igxOverlay', () => {
39483948 } ) ) ;
39493949
39503950 it ( 'Should collapse/close the component when click outside it (DropDown, DatePicker, NavBar etc.)' , fakeAsync ( async ( ) => {
3951- // TO DO replace Spies with css class and/or getBoundingClientRect.
39523951 TestBed . overrideComponent ( EmptyPageComponent , {
39533952 set : {
39543953 styles : [
@@ -3980,8 +3979,10 @@ describe('igxOverlay', () => {
39803979 tick ( ) ;
39813980 expect ( overlay . closing . emit ) . toHaveBeenCalledTimes ( 1 ) ;
39823981 expect ( overlay . closing . emit ) . toHaveBeenCalledWith ( {
3983- id : firstCallId , componentRef : jasmine . any ( ComponentRef ) as any , cancel : false ,
3984- event : new PointerEvent ( 'click' )
3982+ id : firstCallId ,
3983+ componentRef : jasmine . any ( ComponentRef ) as any ,
3984+ cancel : false ,
3985+ event : jasmine . any ( Event ) as any
39853986 } ) ;
39863987 } ) ) ;
39873988
@@ -4019,7 +4020,9 @@ describe('igxOverlay', () => {
40194020 expect ( overlay . closed . emit ) . toHaveBeenCalledTimes ( 1 ) ;
40204021 expect ( overlay . closing . emit )
40214022 . toHaveBeenCalledWith ( {
4022- id : callId , componentRef : jasmine . any ( ComponentRef ) as any , cancel : false ,
4023+ id : callId ,
4024+ componentRef : jasmine . any ( ComponentRef ) as any ,
4025+ cancel : false ,
40234026 event : undefined
40244027 } ) ;
40254028 overlay . detachAll ( ) ;
@@ -4038,8 +4041,10 @@ describe('igxOverlay', () => {
40384041 expect ( overlay . closed . emit ) . toHaveBeenCalledTimes ( 2 ) ;
40394042 expect ( overlay . closing . emit )
40404043 . toHaveBeenCalledWith ( {
4041- id : callId , componentRef : jasmine . any ( ComponentRef ) as any , cancel : false ,
4042- event : new PointerEvent ( 'click' )
4044+ id : callId ,
4045+ componentRef : jasmine . any ( ComponentRef ) as any ,
4046+ cancel : false ,
4047+ event : jasmine . any ( Event ) as any
40434048 } ) ;
40444049 } ) ) ;
40454050 } ) ;
0 commit comments