@@ -490,7 +490,7 @@ describe('Test choroplethmapbox convert:', function() {
490490 var opts = convertModule . convert ( calcTrace ) ;
491491
492492 expect ( opts . geojson . features [ 0 ] . geometry . coordinates ) . toBe ( coordsIn ) ;
493- expect ( calcTrace [ 0 ] . ct ) . toEqual ( [ 100.4 , 0.4 ] ) ;
493+ expect ( calcTrace [ 0 ] . ct ) . toEqual ( [ 100.5 , 0.5 ] ) ;
494494 } ) ;
495495
496496 it ( 'should find correct centroid (multi-polygon case)' , function ( ) {
@@ -499,7 +499,7 @@ describe('Test choroplethmapbox convert:', function() {
499499 var coordsIn = [
500500 [
501501 // this one has the bigger area
502- [ [ 30 , 20 ] , [ 45 , 40 ] , [ 10 , 40 ] , [ 30 , 20 ] ]
502+ [ [ 30 , 20 ] , [ 47 , 40 ] , [ 10 , 33 ] , [ 30 , 20 ] ]
503503 ] ,
504504 [
505505 [ [ 15 , 5 ] , [ 40 , 10 ] , [ 10 , 20 ] , [ 5 , 10 ] , [ 15 , 5 ] ]
@@ -512,7 +512,7 @@ describe('Test choroplethmapbox convert:', function() {
512512 var opts = convertModule . convert ( calcTrace ) ;
513513
514514 expect ( opts . geojson . features [ 0 ] . geometry . coordinates ) . toBe ( coordsIn ) ;
515- expect ( calcTrace [ 0 ] . ct ) . toEqual ( [ 28.75 , 30 ] ) ;
515+ expect ( calcTrace [ 0 ] . ct ) . toEqual ( [ 29 , 31 ] ) ;
516516 } ) ;
517517} ) ;
518518
@@ -640,7 +640,7 @@ describe('Test choroplethmapbox hover:', function() {
640640 return fig ;
641641 } ,
642642 nums : '### 100' ,
643- name : '-86.7 | 32.0 ###' ,
643+ name : '-86.7 | 31.9 ###' ,
644644 evtPts : [ { location : 100 , z : 10 , pointNumber : 0 , curveNumber : 0 } ]
645645 } ] ;
646646
0 commit comments