Skip to content

Commit f6f620f

Browse files
committed
fix ut
1 parent a2133fd commit f6f620f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/mapboxgl/mapping/WebMapV3Spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,8 @@ describe('mapboxgl-webmap3.0', () => {
851851
webmapInstance.updateOverlayLayer(layerInfo, features, '标准名称');
852852
const newFeatures = map.getSource('ms_1052943054_1715672103742_8').getData().features;
853853
expect(newFeatures.length).toBe(1);
854+
delete mapboxgl.Map.prototype.getCRS;
855+
delete mapboxgl.CRS;
854856
done();
855857
});
856858
});

test/tool/mock_l7.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ class Layer {
153153
off() {}
154154

155155
boxSelect(bbox, cb) {
156+
if (this.layerSource.originData.features instanceof Array) {
157+
return cb(this.layerSource.originData.features);
158+
}
156159
if (!(this.layerSource.originData instanceof Array)) {
157160
return cb();
158161
}

0 commit comments

Comments
 (0)