@@ -43,7 +43,7 @@ describe('mapboxgl_GraticuleLayer', () => {
43
43
beforeEach ( ( ) => {
44
44
originalTimeout = jasmine . DEFAULT_TIMEOUT_INTERVAL ;
45
45
jasmine . DEFAULT_TIMEOUT_INTERVAL = 50000 ;
46
- if ( ! map . getLayer ( 'sm-graticule-layer ' ) ) {
46
+ if ( ! map . getLayer ( 'graticuleLayer_1 ' ) ) {
47
47
graticuleLayer = new GraticuleLayer ( map ) ;
48
48
graticuleLayer . onAdd ( map ) ;
49
49
}
@@ -54,8 +54,8 @@ describe('mapboxgl_GraticuleLayer', () => {
54
54
} ) ;
55
55
56
56
afterAll ( ( ) => {
57
- if ( map . getLayer ( 'sm-graticule-layer ' ) ) {
58
- map . removeLayer ( 'sm-graticule-layer ' ) ;
57
+ if ( map . getLayer ( 'graticuleLayer_1 ' ) ) {
58
+ map . removeLayer ( 'graticuleLayer_1 ' ) ;
59
59
}
60
60
document . body . removeChild ( testDiv ) ;
61
61
map = null ;
@@ -75,10 +75,10 @@ describe('mapboxgl_GraticuleLayer', () => {
75
75
76
76
it ( 'setVisibility' , ( ) => {
77
77
graticuleLayer . setVisibility ( false ) ;
78
- var visible = map . getLayoutProperty ( 'sm-graticule-layer ' , 'visibility' ) ;
78
+ var visible = map . getLayoutProperty ( 'graticuleLayer_1 ' , 'visibility' ) ;
79
79
expect ( visible ) . toBe ( 'none' ) ;
80
80
graticuleLayer . setVisibility ( true ) ;
81
- visible = map . getLayoutProperty ( 'sm-graticule-layer ' , 'visibility' ) ;
81
+ visible = map . getLayoutProperty ( 'graticuleLayer_1 ' , 'visibility' ) ;
82
82
expect ( visible ) . toBe ( 'visible' ) ;
83
83
} ) ;
84
84
@@ -98,7 +98,10 @@ describe('mapboxgl_GraticuleLayer', () => {
98
98
} ) ;
99
99
100
100
it ( 'setExtent' , ( ) => {
101
- graticuleLayer . setExtent ( [ [ 0 , 0 ] , [ 50 , 50 ] ] ) ;
101
+ graticuleLayer . setExtent ( [
102
+ [ 0 , 0 ] ,
103
+ [ 50 , 50 ]
104
+ ] ) ;
102
105
expect ( graticuleLayer . options . extent [ 0 ] ) . toEqual ( 0 ) ;
103
106
expect ( graticuleLayer . options . extent [ 3 ] ) . toEqual ( 50 ) ;
104
107
} ) ;
0 commit comments