Skip to content

Commit e3a185b

Browse files
committed
【ut】fix ut
1 parent 36b5e22 commit e3a185b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/mapboxgl/core/MapExtendSpec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ describe('MapExtend mapboxgl', () => {
205205
map.overlayLayersManager = { l7_layer_1: { id: 'l7_layer_1' }, heatmap_1: { id: 'heatmap_1' } };
206206
const layers = map.listLayers();
207207
expect(layers).toEqual(['raster', 'fill-1', 'circle-1', 'l7_layer_1', 'heatmap_1']);
208+
map.remove();
208209
done();
209210
});
210211

@@ -405,6 +406,7 @@ describe('MapExtend mapboxgl', () => {
405406
map.off('click', 'l7_layer_1', cb);
406407
map.off('click', cb);
407408
expect(options.off.calls.count()).toEqual(1);
409+
map.remove();
408410
done();
409411
});
410412
});

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