@@ -2,8 +2,8 @@ var d3 = require('d3');
22
33var Plotly = require ( '@lib/index' ) ;
44var Fx = require ( '@src/components/fx' ) ;
5- var constants = require ( '@src/plots/cartesian/constants' ) ;
65var Lib = require ( '@src/lib' ) ;
6+ var HOVERMINTIME = require ( '@src/components/fx' ) . constants . HOVERMINTIME ;
77
88var createGraphDiv = require ( '../assets/create_graph_div' ) ;
99var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
@@ -554,7 +554,7 @@ describe('hover info', function() {
554554 Promise . resolve ( ) . then ( function ( ) {
555555 Fx . hover ( gd , event , 'xy' ) ;
556556 } )
557- . then ( delay ( constants . HOVERMINTIME * 1.1 ) )
557+ . then ( delay ( HOVERMINTIME * 1.1 ) )
558558 . then ( function ( ) {
559559 Fx . unhover ( gd ) ;
560560 } )
@@ -719,7 +719,7 @@ describe('hover after resizing', function() {
719719
720720 setTimeout ( function ( ) {
721721 resolve ( ) ;
722- } , constants . HOVERMINTIME ) ;
722+ } , HOVERMINTIME ) ;
723723 } ) ;
724724 }
725725
@@ -732,7 +732,7 @@ describe('hover after resizing', function() {
732732 expect ( hoverText . size ( ) ) . toEqual ( cnt , msg ) ;
733733
734734 resolve ( ) ;
735- } , constants . HOVERMINTIME ) ;
735+ } , HOVERMINTIME ) ;
736736 } ) ;
737737 }
738738
@@ -799,7 +799,7 @@ describe('hover on fill', function() {
799799 expect ( + transformCoords [ 1 ] ) . toBeCloseTo ( labelPos [ 1 ] , - 1.2 , labelText + ':y' ) ;
800800
801801 resolve ( ) ;
802- } , constants . HOVERMINTIME ) ;
802+ } , HOVERMINTIME ) ;
803803 } ) ;
804804 }
805805
@@ -879,7 +879,7 @@ describe('hover updates', function() {
879879 }
880880
881881 resolve ( ) ;
882- } , constants . HOVERMINTIME ) ;
882+ } , HOVERMINTIME ) ;
883883 } ) ;
884884 }
885885
@@ -935,7 +935,7 @@ describe('hover updates', function() {
935935 mouseEvent ( 'mousemove' , 394 , 285 ) ;
936936 setTimeout ( function ( ) {
937937 resolve ( ) ;
938- } , constants . HOVERMINTIME ) ;
938+ } , HOVERMINTIME ) ;
939939 } ) ;
940940 }
941941
0 commit comments