@@ -352,6 +352,7 @@ describe('spikeline hover', function() {
352352
353353 it ( 'increase the range of search for points to draw the spikelines on spikedistance change' , function ( done ) {
354354 var _mock = makeMock ( 'toaxis' , 'closest' ) ;
355+ _mock . layout . spikedistance = 20 ;
355356
356357 Plotly . newPlot ( gd , _mock ) . then ( function ( ) {
357358 _hover ( { xval : 1.6 , yval : 2.6 } ) ;
@@ -387,6 +388,7 @@ describe('spikeline hover', function() {
387388 it ( 'correctly responds to setting the spikedistance to -1 by increasing ' +
388389 'the range of search for points to draw the spikelines to Infinity' , function ( done ) {
389390 var _mock = makeMock ( 'toaxis' , 'closest' ) ;
391+ _mock . layout . spikedistance = 20 ;
390392
391393 Plotly . newPlot ( gd , _mock ) . then ( function ( ) {
392394 _hover ( { xval : 1.6 , yval : 2.6 } ) ;
@@ -498,6 +500,7 @@ describe('spikeline hover', function() {
498500 ]
499501 } ] ,
500502 layout : {
503+ spikedistance : 20 ,
501504 hovermode : 'x' ,
502505 xaxis : { showspikes : true } ,
503506 yaxis : { showspikes : true } ,
@@ -567,6 +570,7 @@ describe('spikeline hover', function() {
567570 return {
568571 width : 600 , height : 600 , margin : { l : 100 , r : 100 , t : 100 , b : 100 } ,
569572 showlegend : false ,
573+ spikedistance : 20 ,
570574 xaxis : { range : [ - 0.5 , 1.5 ] , showspikes : true , spikemode : 'toaxis+marker' } ,
571575 yaxis : { range : [ - 1 , 3 ] , showspikes : true , spikemode : 'toaxis+marker' } ,
572576 hovermode : 'x' ,
0 commit comments