File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ describe('openlayers_GraphicLayer', () => {
686
686
const res = source . findGraphicByPixel ( { pixel : [ 0 , 0 ] } , source ) ;
687
687
expect ( res ) . toBeUndefined ( ) ;
688
688
689
- spyOn ( map , 'getFeaturesAtPixel' ) . and . callFake ( ( ) => graphics ) ;
689
+ spyOn ( map , 'getFeaturesAtPixel' ) . and . callFake ( ( ) => graphics ) ;
690
690
const res1 = source . findGraphicByPixel ( { pixel : [ 0 , 0 ] } , source ) ;
691
691
expect ( res1 ) . not . toBeUndefined ( ) ;
692
692
@@ -695,6 +695,7 @@ describe('openlayers_GraphicLayer', () => {
695
695
expect ( graphic ) . toBe ( graphics [ 0 ] ) ;
696
696
expect ( layer ) . toBe ( graphicLayer ) ;
697
697
} ) ;
698
+ source . renderer = { deckGL : { pickObject : ( ) => ( { } ) } } ;
698
699
viewport . dispatchEvent ( new Event ( 'pointermove' ) ) ;
699
700
viewport . dispatchEvent ( new Event ( 'click' ) ) ;
700
701
You can’t perform that action at this time.
0 commit comments