Skip to content

Commit 1c29be9

Browse files
committed
sankey_test: increase position tolerance to run on CI
1 parent 6d45161 commit 1c29be9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/jasmine/tests/sankey_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,8 @@ describe('sankey tests', function() {
792792

793793
var g = d3.select('.hovertext');
794794
var pos = g.node().getBoundingClientRect();
795-
expect(pos.x).toBeCloseTo(555, 0, 'it should have correct x position');
796-
expect(pos.y).toBeCloseTo(196, 0, 'it should have correct y position');
795+
expect(pos.x).toBeCloseTo(555, -1.5, 'it should have correct x position');
796+
expect(pos.y).toBeCloseTo(196, -1.5, 'it should have correct y position');
797797
return Plotly.restyle(gd, 'orientation', 'v');
798798
})
799799
.then(function() {
@@ -806,8 +806,8 @@ describe('sankey tests', function() {
806806

807807
var g = d3.select('.hovertext');
808808
var pos = g.node().getBoundingClientRect();
809-
expect(pos.x).toBeCloseTo(279, 0, 'it should have correct x position');
810-
expect(pos.y).toBeCloseTo(500, 0, 'it should have correct y position');
809+
expect(pos.x).toBeCloseTo(279, -1.5, 'it should have correct x position');
810+
expect(pos.y).toBeCloseTo(500, -1.5, 'it should have correct y position');
811811
})
812812
.catch(failTest)
813813
.then(done);

0 commit comments

Comments
 (0)