@@ -215,10 +215,12 @@ describe('mapbox credentials', function() {
215215 lat : [ 10 , 20 , 30 ]
216216 } ] , { } , {
217217 mapboxAccessToken : dummyToken
218- } ) . catch ( function ( err ) {
218+ } )
219+ . catch ( function ( err ) {
219220 cnt ++ ;
220221 expect ( err ) . toEqual ( new Error ( constants . mapOnErrorMsg ) ) ;
221- } ) . then ( function ( ) {
222+ } )
223+ . then ( function ( ) {
222224 expect ( cnt ) . toEqual ( 1 ) ;
223225 done ( ) ;
224226 } ) ;
@@ -263,10 +265,12 @@ describe('mapbox credentials', function() {
263265 }
264266 } , {
265267 mapboxAccessToken : ''
266- } ) . catch ( function ( err ) {
268+ } )
269+ . catch ( function ( err ) {
267270 cnt ++ ;
268271 expect ( err ) . toEqual ( new Error ( msg ) ) ;
269- } ) . then ( function ( ) {
272+ } )
273+ . then ( function ( ) {
270274 expect ( cnt ) . toEqual ( 1 ) ;
271275 done ( ) ;
272276 } ) ;
@@ -310,22 +314,26 @@ describe('mapbox plots', function() {
310314 expect ( gd . _fullLayout . mapbox ) . toBeUndefined ( ) ;
311315
312316 return Plotly . restyle ( gd , 'visible' , true ) ;
313- } ) . then ( function ( ) {
317+ } )
318+ . then ( function ( ) {
314319 expect ( countVisibleTraces ( gd , modes ) ) . toEqual ( 2 ) ;
315320
316321 return Plotly . restyle ( gd , 'visible' , 'legendonly' , [ 1 ] ) ;
317- } ) . then ( function ( ) {
322+ } )
323+ . then ( function ( ) {
318324 expect ( countVisibleTraces ( gd , modes ) ) . toEqual ( 1 ) ;
319325
320326 return Plotly . restyle ( gd , 'visible' , true ) ;
321- } ) . then ( function ( ) {
327+ } )
328+ . then ( function ( ) {
322329 expect ( countVisibleTraces ( gd , modes ) ) . toEqual ( 2 ) ;
323330
324331 var mockCopy = Lib . extendDeep ( { } , mock ) ;
325332 mockCopy . data [ 0 ] . visible = false ;
326333
327334 return Plotly . newPlot ( gd , mockCopy . data , mockCopy . layout ) ;
328- } ) . then ( function ( ) {
335+ } )
336+ . then ( function ( ) {
329337 expect ( countVisibleTraces ( gd , modes ) ) . toEqual ( 1 ) ;
330338
331339 done ( ) ;
@@ -348,7 +356,8 @@ describe('mapbox plots', function() {
348356 } ;
349357
350358 return Plotly . addTraces ( gd , [ trace ] ) ;
351- } ) . then ( function ( ) {
359+ } )
360+ . then ( function ( ) {
352361 expect ( countVisibleTraces ( gd , modes ) ) . toEqual ( 2 ) ;
353362
354363 var trace = {
@@ -359,11 +368,13 @@ describe('mapbox plots', function() {
359368 } ;
360369
361370 return Plotly . addTraces ( gd , [ trace ] ) ;
362- } ) . then ( function ( ) {
371+ } )
372+ . then ( function ( ) {
363373 expect ( countVisibleTraces ( gd , modes ) ) . toEqual ( 3 ) ;
364374
365375 return Plotly . deleteTraces ( gd , [ 0 , 1 , 2 ] ) ;
366- } ) . then ( function ( ) {
376+ } )
377+ . then ( function ( ) {
367378 expect ( gd . _fullLayout . mapbox ) . toBeUndefined ( ) ;
368379
369380 done ( ) ;
@@ -462,28 +473,32 @@ describe('mapbox plots', function() {
462473 assertLayout ( 'Mapbox Dark' , [ 0 , 0 ] , 1.234 , [ 80 , 100 , 908 , 270 ] ) ;
463474
464475 return Plotly . relayout ( gd , 'mapbox.zoom' , '6' ) ;
465- } ) . then ( function ( ) {
476+ } )
477+ . then ( function ( ) {
466478 expect ( restyleCnt ) . toEqual ( 0 ) ;
467479 expect ( relayoutCnt ) . toEqual ( 2 ) ;
468480
469481 assertLayout ( 'Mapbox Dark' , [ 0 , 0 ] , 6 , [ 80 , 100 , 908 , 270 ] ) ;
470482
471483 return Plotly . relayout ( gd , 'mapbox.style' , 'light' ) ;
472- } ) . then ( function ( ) {
484+ } )
485+ . then ( function ( ) {
473486 expect ( restyleCnt ) . toEqual ( 0 ) ;
474487 expect ( relayoutCnt ) . toEqual ( 3 ) ;
475488
476489 assertLayout ( 'Mapbox Light' , [ 0 , 0 ] , 6 , [ 80 , 100 , 908 , 270 ] ) ;
477490
478491 return Plotly . relayout ( gd , 'mapbox.domain.x' , [ 0 , 0.5 ] ) ;
479- } ) . then ( function ( ) {
492+ } )
493+ . then ( function ( ) {
480494 expect ( restyleCnt ) . toEqual ( 0 ) ;
481495 expect ( relayoutCnt ) . toEqual ( 4 ) ;
482496
483497 assertLayout ( 'Mapbox Light' , [ 0 , 0 ] , 6 , [ 80 , 100 , 454 , 270 ] ) ;
484498
485499 return Plotly . relayout ( gd , 'mapbox.domain.y[0]' , 0.5 ) ;
486- } ) . then ( function ( ) {
500+ } )
501+ . then ( function ( ) {
487502 expect ( restyleCnt ) . toEqual ( 0 ) ;
488503 expect ( relayoutCnt ) . toEqual ( 5 ) ;
489504
@@ -669,7 +684,8 @@ describe('mapbox plots', function() {
669684 } ;
670685
671686 return Plotly . extendTraces ( gd , update , [ 0 , 1 ] ) ;
672- } ) . then ( function ( ) {
687+ } )
688+ . then ( function ( ) {
673689 assertDataPts ( [ 5 , 5 ] ) ;
674690
675691 done ( ) ;
0 commit comments