@@ -366,7 +366,7 @@ describe('sankey tests', function() {
366366 . then ( function ( ) {
367367 expect ( d3 . selectAll ( '.sankey .nodeRect' ) [ 0 ] . reduce ( function ( prevMin , rect ) {
368368 return Math . min ( prevMin , d3 . select ( rect ) . attr ( 'height' ) ) ;
369- } , Infinity ) ) . toEqual ( 1 ) ;
369+ } , Infinity ) ) . toEqual ( 0.5 ) ;
370370 done ( ) ;
371371 } ) ;
372372 } ) ;
@@ -375,7 +375,7 @@ describe('sankey tests', function() {
375375 describe ( 'Test hover/click interactions:' , function ( ) {
376376 afterEach ( destroyGraphDiv ) ;
377377
378- it ( 'should shows the correct hover labels' , function ( done ) {
378+ it ( 'should show the correct hover labels' , function ( done ) {
379379 var gd = createGraphDiv ( ) ;
380380 var mockCopy = Lib . extendDeep ( { } , mock ) ;
381381
@@ -386,7 +386,7 @@ describe('sankey tests', function() {
386386 }
387387
388388 Plotly . plot ( gd , mockCopy ) . then ( function ( ) {
389- _hover ( 400 , 300 ) ;
389+ _hover ( 404 , 302 ) ;
390390
391391 assertLabel (
392392 [ 'Solid' , 'Incoming flow count: 4' , 'Outgoing flow count: 3' , '447TWh' ] ,
@@ -404,7 +404,7 @@ describe('sankey tests', function() {
404404 return Plotly . relayout ( gd , 'hoverlabel.font.family' , 'Roboto' ) ;
405405 } )
406406 . then ( function ( ) {
407- _hover ( 400 , 300 ) ;
407+ _hover ( 404 , 302 ) ;
408408
409409 assertLabel (
410410 [ 'Solid' , 'Incoming flow count: 4' , 'Outgoing flow count: 3' , '447TWh' ] ,
@@ -427,7 +427,7 @@ describe('sankey tests', function() {
427427 } ) ;
428428 } )
429429 . then ( function ( ) {
430- _hover ( 400 , 300 ) ;
430+ _hover ( 404 , 302 ) ;
431431
432432 assertLabel (
433433 [ 'Solid' , 'Incoming flow count: 4' , 'Outgoing flow count: 3' , '447TWh' ] ,
@@ -482,7 +482,7 @@ describe('sankey tests', function() {
482482
483483 function _makeWrapper ( eventType , mouseFn ) {
484484 var posByElementType = {
485- node : [ 400 , 300 ] ,
485+ node : [ 404 , 302 ] ,
486486 link : [ 450 , 300 ]
487487 } ;
488488
0 commit comments