@@ -687,13 +687,11 @@ describe('Angular-Slickgrid Custom Component instantiated via Constructor', () =
687687 it ( 'should be able to load async editors with an Observable' , ( done ) => {
688688 const mockCollection = [ 'male' , 'female' ] ;
689689 const mockColDefs = [ { id : 'gender' , field : 'gender' , editor : { model : Editors . text , collectionAsync : of ( mockCollection ) } } ] as Column [ ] ;
690- const getColSpy = jest . spyOn ( mockGrid , 'getColumns' ) . mockReturnValue ( mockColDefs ) ;
691690
692691 component . ngAfterViewInit ( ) ;
693692 component . columnDefinitions = mockColDefs ;
694693
695694 setTimeout ( ( ) => {
696- expect ( getColSpy ) . toHaveBeenCalled ( ) ;
697695 expect ( component . columnDefinitions [ 0 ] . editor ) . toBeTruthy ( ) ;
698696 expect ( component . columnDefinitions [ 0 ] . editor ! . collection ) . toEqual ( mockCollection ) ;
699697 expect ( component . columnDefinitions [ 0 ] . internalColumnEditor ! . collection ) . toEqual ( mockCollection ) ;
@@ -711,7 +709,6 @@ describe('Angular-Slickgrid Custom Component instantiated via Constructor', () =
711709 renderDomElement : jest . fn ( ) ,
712710 } as unknown as Editor ;
713711 const mockColDefs = [ { id : 'gender' , field : 'gender' , editor : { model : Editors . text , collectionAsync : promise } } ] as Column [ ] ;
714- const getColSpy = jest . spyOn ( mockGrid , 'getColumns' ) . mockReturnValue ( mockColDefs ) ;
715712 jest . spyOn ( mockGrid , 'getCellEditor' ) . mockReturnValue ( mockEditor ) ;
716713 const disableSpy = jest . spyOn ( mockEditor , 'disable' ) ;
717714 const destroySpy = jest . spyOn ( mockEditor , 'destroy' ) ;
@@ -721,7 +718,6 @@ describe('Angular-Slickgrid Custom Component instantiated via Constructor', () =
721718 component . columnDefinitions = mockColDefs ;
722719
723720 setTimeout ( ( ) => {
724- expect ( getColSpy ) . toHaveBeenCalled ( ) ;
725721 expect ( component . columnDefinitions [ 0 ] . editor ) . toBeTruthy ( ) ;
726722 expect ( component . columnDefinitions [ 0 ] . editor ! . collection ) . toEqual ( mockCollection ) ;
727723 expect ( component . columnDefinitions [ 0 ] . internalColumnEditor ! . collection ) . toEqual ( mockCollection ) ;
0 commit comments