Skip to content

Commit 25af9ff

Browse files
[fix]UT
1 parent fd9c073 commit 25af9ff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/mapboxgl/overlay/GraticuleLayerSpec.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,10 @@ describe('mapboxgl_GraticuleLayer', () => {
7575

7676
it('_initialize visible', (done) => {
7777
setTimeout(() => {
78-
expect(graticuleLayer).not.toBeNull();
7978
const graticuleLayer = new GraticuleLayer({ layerID: 'graticuleLayer_test', visible: false });
8079
graticuleLayer.onAdd(map);
81-
var visible = map.getLayoutProperty('graticuleLayer_1_line', 'visibility');
82-
expect(visible).toBe('false');
80+
var visible = map.getLayoutProperty('graticuleLayer_test_line', 'visibility');
81+
expect(visible).toBe('none');
8382
done();
8483
}, 0);
8584
});

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