File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1274,7 +1274,9 @@ describe('sankey tests', function() {
12741274 nodes = document . getElementsByClassName ( 'sankey-node' ) ;
12751275 node = nodes . item ( nodes . length - 1 ) ; // Dragged node is now the last one
12761276 var newPosition = getNodeCoords ( node ) ;
1277- if ( arrangement === 'freeform' ) expect ( newPosition . x ) . toBeCloseTo ( position . x + move [ 0 ] , 2 , 'final x position is off' ) ;
1277+ if ( arrangement === 'freeform' ) {
1278+ expect ( newPosition . x ) . toBeCloseTo ( position . x + move [ 0 ] , 0 , 'final x position is off' ) ;
1279+ }
12781280 expect ( newPosition . y ) . toBeCloseTo ( position . y + move [ 1 ] , 2 , 'final y position is off' ) ;
12791281 return Promise . resolve ( true ) ;
12801282 } ) ;
@@ -1308,7 +1310,7 @@ describe('sankey tests', function() {
13081310 var node ;
13091311 var x , x1 ;
13101312 var y , y1 ;
1311- var precision = 3 ;
1313+ var precision = 2 ;
13121314
13131315 Plotly . newPlot ( gd , mockCopy )
13141316 . then ( function ( ) {
You can’t perform that action at this time.
0 commit comments