@@ -792,8 +792,8 @@ describe('sankey tests', function() {
792792
793793 var g = d3 . select ( '.hovertext' ) ;
794794 var pos = g . node ( ) . getBoundingClientRect ( ) ;
795- expect ( pos . x ) . toBeCloseTo ( 555 , 0 , 'it should have correct x position' ) ;
796- expect ( pos . y ) . toBeCloseTo ( 196 , 0 , 'it should have correct y position' ) ;
795+ expect ( pos . x ) . toBeCloseTo ( 555 , - 1.5 , 'it should have correct x position' ) ;
796+ expect ( pos . y ) . toBeCloseTo ( 196 , - 1.5 , 'it should have correct y position' ) ;
797797 return Plotly . restyle ( gd , 'orientation' , 'v' ) ;
798798 } )
799799 . then ( function ( ) {
@@ -806,8 +806,8 @@ describe('sankey tests', function() {
806806
807807 var g = d3 . select ( '.hovertext' ) ;
808808 var pos = g . node ( ) . getBoundingClientRect ( ) ;
809- expect ( pos . x ) . toBeCloseTo ( 279 , 0 , 'it should have correct x position' ) ;
810- expect ( pos . y ) . toBeCloseTo ( 500 , 0 , 'it should have correct y position' ) ;
809+ expect ( pos . x ) . toBeCloseTo ( 279 , - 1.5 , 'it should have correct x position' ) ;
810+ expect ( pos . y ) . toBeCloseTo ( 500 , - 1.5 , 'it should have correct y position' ) ;
811811 } )
812812 . catch ( failTest )
813813 . then ( done ) ;
0 commit comments