@@ -366,7 +366,7 @@ describe('sankey tests', function() {
366
366
. then ( function ( ) {
367
367
expect ( d3 . selectAll ( '.sankey .nodeRect' ) [ 0 ] . reduce ( function ( prevMin , rect ) {
368
368
return Math . min ( prevMin , d3 . select ( rect ) . attr ( 'height' ) ) ;
369
- } , Infinity ) ) . toEqual ( 1 ) ;
369
+ } , Infinity ) ) . toEqual ( 0.5 ) ;
370
370
done ( ) ;
371
371
} ) ;
372
372
} ) ;
@@ -375,7 +375,7 @@ describe('sankey tests', function() {
375
375
describe ( 'Test hover/click interactions:' , function ( ) {
376
376
afterEach ( destroyGraphDiv ) ;
377
377
378
- it ( 'should shows the correct hover labels' , function ( done ) {
378
+ it ( 'should show the correct hover labels' , function ( done ) {
379
379
var gd = createGraphDiv ( ) ;
380
380
var mockCopy = Lib . extendDeep ( { } , mock ) ;
381
381
@@ -386,7 +386,7 @@ describe('sankey tests', function() {
386
386
}
387
387
388
388
Plotly . plot ( gd , mockCopy ) . then ( function ( ) {
389
- _hover ( 400 , 300 ) ;
389
+ _hover ( 404 , 302 ) ;
390
390
391
391
assertLabel (
392
392
[ 'Solid' , 'Incoming flow count: 4' , 'Outgoing flow count: 3' , '447TWh' ] ,
@@ -404,7 +404,7 @@ describe('sankey tests', function() {
404
404
return Plotly . relayout ( gd , 'hoverlabel.font.family' , 'Roboto' ) ;
405
405
} )
406
406
. then ( function ( ) {
407
- _hover ( 400 , 300 ) ;
407
+ _hover ( 404 , 302 ) ;
408
408
409
409
assertLabel (
410
410
[ 'Solid' , 'Incoming flow count: 4' , 'Outgoing flow count: 3' , '447TWh' ] ,
@@ -427,7 +427,7 @@ describe('sankey tests', function() {
427
427
} ) ;
428
428
} )
429
429
. then ( function ( ) {
430
- _hover ( 400 , 300 ) ;
430
+ _hover ( 404 , 302 ) ;
431
431
432
432
assertLabel (
433
433
[ 'Solid' , 'Incoming flow count: 4' , 'Outgoing flow count: 3' , '447TWh' ] ,
@@ -482,7 +482,7 @@ describe('sankey tests', function() {
482
482
483
483
function _makeWrapper ( eventType , mouseFn ) {
484
484
var posByElementType = {
485
- node : [ 400 , 300 ] ,
485
+ node : [ 404 , 302 ] ,
486
486
link : [ 450 , 300 ]
487
487
} ;
488
488
0 commit comments