Skip to content

Commit d483d2f

Browse files
[fix]UT
1 parent 4c9efc0 commit d483d2f

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

test/maplibregl/overlay/L7LayerSpec.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ describe('maplibregl L7Layer', () => {
2828
spyOn(L7, 'PointLayer').and.callFake(mockL7.PointLayer);
2929
spyOn(L7, 'GeometryLayer').and.callFake(mockL7.GeometryLayer);
3030
spyOn(L7, 'Scene').and.callFake(mockL7.Scene);
31-
spyOn(L7, 'Mapbox').and.callFake(mockL7.Mapbox);
32-
// Scene = mockL7.Scene;
33-
// Mapbox = mockL7.Mapbox;
34-
// maplibregl.Map.prototype.getCRS = () => ({ fromWGS84: (val) => val, getExtent: () => [] });
31+
spyOn(L7, 'Maplibre').and.callFake(mockL7.Maplibre);
32+
3533
testDiv = window.document.createElement('div');
3634
testDiv.setAttribute('id', 'map');
3735
testDiv.style.styleFloat = 'left';

test/test-main-mapboxgl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import './mapboxgl/overlay/symbol/SymbolManagerSpec';
2424
import './mapboxgl/overlay/symbol/WebSymbolSpec';
2525
import './mapboxgl/overlay/symbol/SymbolHandlerSpec';
2626
import './mapboxgl/overlay/symbol/SymbolUtilSpec';
27-
import './mapboxgl/overlay/symbol/MapExtendSymbolSpec.js';
2827
import './mapboxgl/overlay/L7LayerSpec.js';
28+
import './mapboxgl/overlay/symbol/MapExtendSymbolSpec.js';
2929

3030
/*mapboxgl -- services*/
3131
import './mapboxgl/services/KnowledgeGraphServiceSpec.js';

test/test-main-maplibregl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ import './maplibregl/overlay/symbol/SymbolManagerSpec';
6767
import './maplibregl/overlay/symbol/WebSymbolSpec';
6868
import './maplibregl/overlay/symbol/SymbolHandlerSpec';
6969
import './maplibregl/overlay/symbol/SymbolUtilSpec';
70-
import './maplibregl/overlay/symbol/MapExtendSymbolSpec.js';
7170
import './maplibregl/overlay/L7LayerSpec.js';
71+
import './maplibregl/overlay/symbol/MapExtendSymbolSpec.js';
7272

7373
/*maplibregl -- mapping*/
7474
import './maplibregl/mapping/InitMapSpec.js';

test/tool/mock_mapboxgl_map.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ const Map = function (options) {
9595
}
9696

9797
this.setLayoutProperty = function (layerid) {};
98+
this.setLayoutPropertyBySymbolBak = function (layerid) {};
9899

99100
this.addControl = function (control) {
100101
control.onAdd(this);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy