File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ describe('GraphMap mapboxgl', () => {
5353 return Promise . resolve ( new Response ( graphmapData ) ) ;
5454 }
5555 if ( testUrl . includes ( '/shortestPath.json' ) ) {
56- expect ( testUrl ) . toBe ( knowledgegraphURL + '/shortestPath.json?startid =38756&endid =38757' ) ;
56+ expect ( testUrl ) . toBe ( knowledgegraphURL + '/shortestPath.json?startID =38756&endID =38757' ) ;
5757 expect ( options ) . not . toBeNull ( ) ;
5858 return Promise . resolve ( new Response ( findShortestPathData ) ) ;
5959 }
@@ -64,7 +64,7 @@ describe('GraphMap mapboxgl', () => {
6464 expect ( graphMap ) . not . toBeNull ( ) ;
6565 spyOn ( graphMap . graph , 'highlight' ) ;
6666 spyOn ( graphMap . graph , 'clearHighlight' ) ;
67- graphMap . findShortestPath ( { startid : 38756 , endid : 38757 } , ( res ) => {
67+ graphMap . findShortestPath ( { startID : 38756 , endID : 38757 } , ( res ) => {
6868 expect ( res ) . not . toBeNull ( ) ;
6969 expect ( res . type ) . toBe ( 'processCompleted' ) ;
7070 expect ( res . result ) . not . toBeNull ( ) ;
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ describe('GraphMap maplibregl', () => {
6969 expect ( res . result ) . not . toBeNull ( ) ;
7070 expect ( res . result . nodeIDs ) . toEqual ( [ 40229 , 40237 , 64058 ] ) ;
7171 expect ( res . result . edgeIDs ) . toEqual ( [ 69575 , 66619 ] ) ;
72+ graphMap . highlight ( { nodeIDs : [ 40229 ] , edgeIDs : [ 69575 ] } ) ;
7273 expect ( graphMap . graph . highlight ) . toHaveBeenCalled ( ) ;
7374 graphMap . clearHighlight ( { nodeIDs : [ 40229 ] , edgeIDs : [ 69575 ] } ) ;
7475 expect ( graphMap . graph . clearHighlight ) . toHaveBeenCalled ( ) ;
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ describe('GraphMap openlayers', () => {
6363 expect ( graphMap ) . not . toBeNull ( ) ;
6464 spyOn ( graphMap . graph , 'highlight' ) ;
6565 spyOn ( graphMap . graph , 'clearHighlight' ) ;
66- graphMap . findShortestPath ( { startid : 38756 , endid : 38757 } , ( res ) => {
66+ graphMap . findShortestPath ( { startID : 38756 , endID : 38757 } , ( res ) => {
6767 expect ( res ) . not . toBeNull ( ) ;
6868 expect ( res . type ) . toBe ( 'processCompleted' ) ;
6969 expect ( res . result ) . not . toBeNull ( ) ;
You can’t perform that action at this time.
0 commit comments