Skip to content

Commit 0f5c4b9

Browse files
committed
more accurate test
1 parent 5bf79c9 commit 0f5c4b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jasmine/tests/axes_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,10 +1782,10 @@ describe('Test axes', function() {
17821782

17831783
describe('a category has the same value of one of the auto range computed extreme', function() {
17841784
it('should compute the right range for X axis', function() {
1785-
Plotly.plot(gd, [{x: ['1.5', '2.5', '3.5', '6.5', '7.5', '8.5', 'Not Known'], y: [ '1.0', '1.0', '2.0', '1.0', '1.0', '2.0', '1.0'], type: 'bar'}], {
1785+
Plotly.plot(gd, [{x: ['0', '-0.5', '3.5', 'Not Known'], y: [ '1.0', '1.0', '2.0', '1.0'], type: 'bar'}], {
17861786
xaxis: {type: 'category', autorange: true}
17871787
});
1788-
expect(gd._fullLayout.xaxis._rl).toEqual([-0.5, 6.5]);
1788+
expect(gd._fullLayout.xaxis._rl).toEqual([-0.5, 3.5]);
17891789
});
17901790
});
17911791
});

0 commit comments

Comments
 (0)