@@ -792,8 +792,8 @@ describe('sankey tests', function() {
792
792
793
793
var g = d3 . select ( '.hovertext' ) ;
794
794
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' ) ;
797
797
return Plotly . restyle ( gd , 'orientation' , 'v' ) ;
798
798
} )
799
799
. then ( function ( ) {
@@ -806,8 +806,8 @@ describe('sankey tests', function() {
806
806
807
807
var g = d3 . select ( '.hovertext' ) ;
808
808
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' ) ;
811
811
} )
812
812
. catch ( failTest )
813
813
. then ( done ) ;
0 commit comments