@@ -70,7 +70,7 @@ describe('TOC Toolbar', () => {
7070 maxy : 9 ,
7171 minx : - 10 ,
7272 miny : - 9
73- } , crs : 'EPSG'
73+ } , crs : 'EPSG:4326 '
7474 } ,
7575 search : {
7676 url : 'l001url'
@@ -92,7 +92,7 @@ describe('TOC Toolbar', () => {
9292 maxy : 9 ,
9393 minx : - 10 ,
9494 miny : - 9
95- } , 'EPSG' ) ;
95+ } , 'EPSG:4326 ' ) ;
9696
9797 TestUtils . Simulate . click ( btn [ 1 ] ) ;
9898 expect ( spySettings ) . toHaveBeenCalledWith ( 'l001' , 'layers' , { opacity : 1 } ) ;
@@ -130,7 +130,7 @@ describe('TOC Toolbar', () => {
130130 maxy : 9 ,
131131 minx : - 10 ,
132132 miny : - 9
133- } , crs : 'EPSG'
133+ } , crs : 'EPSG:4326 '
134134 }
135135 } ] ;
136136
@@ -149,7 +149,7 @@ describe('TOC Toolbar', () => {
149149 maxy : 9 ,
150150 minx : - 10 ,
151151 miny : - 9
152- } , 'EPSG' ) ;
152+ } , 'EPSG:4326 ' ) ;
153153
154154 TestUtils . Simulate . click ( btn [ 1 ] ) ;
155155 expect ( spySettings ) . toHaveBeenCalledWith ( 'l001' , 'layers' , { opacity : 1 } ) ;
@@ -173,7 +173,7 @@ describe('TOC Toolbar', () => {
173173 maxy : 9 ,
174174 minx : - 10 ,
175175 miny : - 9
176- } , crs : 'EPSG'
176+ } , crs : 'EPSG:4326 '
177177 }
178178 } ] ;
179179
@@ -207,7 +207,7 @@ describe('TOC Toolbar', () => {
207207 maxy : 9 ,
208208 minx : - 10 ,
209209 miny : - 9
210- } , crs : 'EPSG'
210+ } , crs : 'EPSG:4326 '
211211 } ,
212212 search : {
213213 url : 'l001url'
@@ -248,7 +248,7 @@ describe('TOC Toolbar', () => {
248248 maxy : 9 ,
249249 minx : - 10 ,
250250 miny : - 9
251- } , crs : 'EPSG'
251+ } , crs : 'EPSG:4326 '
252252 } ,
253253 search : {
254254 url : 'l001url'
@@ -263,7 +263,7 @@ describe('TOC Toolbar', () => {
263263 maxy : 29 ,
264264 minx : 28 ,
265265 miny : 27
266- } , crs : 'EPSG'
266+ } , crs : 'EPSG:4326 '
267267 } ,
268268 search : {
269269 url : 'l002url'
@@ -292,7 +292,7 @@ describe('TOC Toolbar', () => {
292292 maxy : 29 ,
293293 minx : - 10 ,
294294 miny : - 9
295- } , 'EPSG' ) ;
295+ } , 'EPSG:4326 ' ) ;
296296
297297 TestUtils . Simulate . click ( btn [ 1 ] ) ;
298298 expect ( spySettings ) . toHaveBeenCalledWith ( 'g001' , 'groups' , { } ) ;
@@ -313,7 +313,7 @@ describe('TOC Toolbar', () => {
313313 maxy : 9 ,
314314 minx : - 10 ,
315315 miny : - 9
316- } , crs : 'EPSG'
316+ } , crs : 'EPSG:4326 '
317317 } ,
318318 search : {
319319 url : 'l001url'
@@ -328,7 +328,7 @@ describe('TOC Toolbar', () => {
328328 maxy : 29 ,
329329 minx : 28 ,
330330 miny : 27
331- } , crs : 'EPSG'
331+ } , crs : 'EPSG:4326 '
332332 } ,
333333 search : {
334334 url : 'l002url'
@@ -377,4 +377,29 @@ describe('TOC Toolbar', () => {
377377 expect ( removeModal ) . toExist ( ) ;
378378 } ) ;
379379
380+ it ( 'layer single selection (epsg not supported)' , ( ) => {
381+
382+ const selectedLayers = [ {
383+ id : 'l001' ,
384+ title : 'layer001' ,
385+ name : 'layer001name' ,
386+ bbox : {
387+ bounds : {
388+ maxx : 10 ,
389+ maxy : 9 ,
390+ minx : - 10 ,
391+ miny : - 9
392+ } , crs : 'EPSG:3003'
393+ }
394+ } ] ;
395+
396+ const cmp = ReactDOM . render ( < Toolbar selectedLayers = { selectedLayers } onToolsActions = { onToolsActions } /> , document . getElementById ( "container" ) ) ;
397+
398+ const el = ReactDOM . findDOMNode ( cmp ) ;
399+ expect ( el ) . toExist ( ) ;
400+ const btn = el . getElementsByClassName ( 'btn' ) ;
401+ expect ( btn . length ) . toBe ( 3 ) ;
402+ expect ( btn [ 0 ] . style . cursor ) . toBe ( 'default' ) ;
403+ } ) ;
404+
380405} ) ;
0 commit comments