Skip to content

Commit cb05999

Browse files
committed
Refactor WebMapV3 instantiation in tests
1 parent b85fcd3 commit cb05999

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎test/maplibregl/mapping/WebMapV3Spec.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ describe('maplibregl-webmap3.0', () => {
418418
});
419419
const mapInfo = JSON.parse(mapstudioWebMap_drill);
420420
const originMapInfo = JSON.parse(mapstudioWebMap_drill);
421-
const mapstudioWebmap = new WebMapV3(mapInfo, {
421+
mapstudioWebmap = new WebMapV3(mapInfo, {
422422
server: server,
423423
target: 'map'
424424
});
@@ -446,7 +446,7 @@ describe('maplibregl-webmap3.0', () => {
446446
});
447447
const mapInfo = JSON.parse(mapstudioWebMap_drill_layers1);
448448
const originMapInfo = JSON.parse(mapstudioWebMap_drill_layers1);
449-
const mapstudioWebmap = new WebMapV3(mapInfo, {
449+
mapstudioWebmap = new WebMapV3(mapInfo, {
450450
server: server,
451451
target: 'map'
452452
});
@@ -474,7 +474,7 @@ describe('maplibregl-webmap3.0', () => {
474474
});
475475
const mapInfo = JSON.parse(mapstudioWebMap_drill_layers2);
476476
const originMapInfo = JSON.parse(mapstudioWebMap_drill_layers2);
477-
const mapstudioWebmap = new WebMapV3(mapInfo, {
477+
mapstudioWebmap = new WebMapV3(mapInfo, {
478478
server: server,
479479
target: 'map'
480480
});
@@ -1021,7 +1021,7 @@ describe('maplibregl-webmap3.0', () => {
10211021
return Promise.resolve();
10221022
});
10231023
const mapInfo = JSON.parse(mapstudioWebMap_group);
1024-
const mapstudioWebmap = new WebMapV3(mapInfo, {
1024+
mapstudioWebmap = new WebMapV3(mapInfo, {
10251025
server: server,
10261026
target: 'map'
10271027
});

0 commit comments

Comments
 (0)