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

+2-3
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)