Skip to content

Commit 307287e

Browse files
committed
more tolerant tests for ci
1 parent 7983568 commit 307287e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/jasmine/tests/hover_label_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2041,7 +2041,7 @@ describe('hover info', function() {
20412041
function _assert(msg, exp) {
20422042
var tx = d3.select('g.hovertext').select('text');
20432043
expect(tx.attr('text-anchor')).toBe(exp.textAnchor, 'text anchor|' + msg);
2044-
expect(Number(tx.attr('x'))).toBeCloseTo(exp.posX, 2, 'x position|' + msg);
2044+
expect(Number(tx.attr('x'))).toBeWithin(exp.posX, 3, 'x position|' + msg);
20452045
}
20462046

20472047
Plotly.plot(gd, [{

test/jasmine/tests/pie_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ describe('pie hovering', function() {
11921192
function _assert(msg, exp) {
11931193
var tx = d3.select('g.hovertext').select('text');
11941194
expect(tx.attr('text-anchor')).toBe(exp.textAnchor, 'text anchor|' + msg);
1195-
expect(Number(tx.attr('x'))).toBeCloseTo(exp.posX, 2, 'x position|' + msg);
1195+
expect(Number(tx.attr('x'))).toBeWithin(exp.posX, 3, 'x position|' + msg);
11961196
}
11971197

11981198
function _hoverLeft() {

0 commit comments

Comments
 (0)