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() {
1274
1274
nodes = document . getElementsByClassName ( 'sankey-node' ) ;
1275
1275
node = nodes . item ( nodes . length - 1 ) ; // Dragged node is now the last one
1276
1276
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
+ }
1278
1280
expect ( newPosition . y ) . toBeCloseTo ( position . y + move [ 1 ] , 2 , 'final y position is off' ) ;
1279
1281
return Promise . resolve ( true ) ;
1280
1282
} ) ;
@@ -1308,7 +1310,7 @@ describe('sankey tests', function() {
1308
1310
var node ;
1309
1311
var x , x1 ;
1310
1312
var y , y1 ;
1311
- var precision = 3 ;
1313
+ var precision = 2 ;
1312
1314
1313
1315
Plotly . newPlot ( gd , mockCopy )
1314
1316
. then ( function ( ) {
You can’t perform that action at this time.
0 commit comments