Skip to content

Commit eff317f

Browse files
committed
【fix】UT
1 parent 59f8e78 commit eff317f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/mapboxgl/mapping/WebMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,7 @@ export class WebMap extends mapboxgl.Evented {
19991999
allFeatures[i].properties.lat = coordinate[1];
20002000
}
20012001
}
2002-
features.properties['index'] = i + '';
2002+
feature.properties['index'] = i + '';
20032003
features.push(feature);
20042004
}
20052005
return features;

test/mapboxgl/mapping/WebMapSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ describe('mapboxgl_WebMap', () => {
516516
return Promise.resolve();
517517
});
518518
spyOn(FetchRequest, 'post').and.callFake((url) => {
519-
if (url.indexOf('queryResults.json') > -1) {
519+
if (url.indexOf('queryResults') > -1) {
520520
return Promise.resolve(new Response(supermapRestData));
521521
}
522522
return Promise.resolve();

0 commit comments

Comments
 (0)