Skip to content

Commit 9fd2381

Browse files
[fix]UT
1 parent 8527ff9 commit 9fd2381

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/maplibregl/include-maplibregl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
var includes = (targetScript.getAttribute('include') || '').split(',');
5656
var excludes = (targetScript.getAttribute('exclude') || '').split(',');
5757
if (!inArray(excludes, 'maplibregl')) {
58-
inputCSS(libsurl + '/maplibre-gl-js/4.3.2/maplibre-gl.min..css');
58+
inputCSS(libsurl + '/maplibre-gl-js/4.3.2/maplibre-gl.min.css');
5959
inputScript(libsurl + '/maplibre-gl-js/4.3.2/maplibre-gl.min.js');
6060
}
6161
if (inArray(includes, 'L7')) {

test/mapboxgl/overlay/L7LayerSpec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,12 @@ describe('mapboxgl L7Layer', () => {
306306
spyOn(l7Layer, 'show');
307307
spyOn(l7Layer, 'hide');
308308
spyOn(map.style, 'setLayoutProperty');
309+
expect(layer.animateStatus).toBeTruthy();
309310

310311
map.setLayoutProperty(layer.id, 'visibility', 'hidden');
311312
expect(l7Layer.hide).toHaveBeenCalled();
312313
expect(map.style.setLayoutProperty).toHaveBeenCalled();
313-
expect(layer.animateStatus).toBeTruthy();
314+
expect(layer.animateStatus).toBeFalsy();
314315

315316
map.setLayoutProperty(layer.id, 'visibility', 'visible');
316317
expect(l7Layer.show).toHaveBeenCalled();

0 commit comments

Comments
 (0)