Skip to content

Commit 8778e2b

Browse files
[fix]UT
1 parent a3ce554 commit 8778e2b

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎test/mapboxgl/overlay/GraphMapSpec.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

‎test/maplibregl/overlay/GraphMapSpec.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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();

‎test/openlayers/overlay/GraphMapSpec.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)