We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c45338d commit f1b686fCopy full SHA for f1b686f
test/jasmine/tests/modebar_test.js
@@ -624,9 +624,15 @@ describe('ModeBar', function() {
624
var PRECISION = 2;
625
626
var ax = gd._fullLayout[axName];
627
- var actual = ax.range.map(ax.r2l);
+ var actual = ax.range;
628
629
- expect(actual).toBeCloseToArray(expected.map(ax.r2l), PRECISION, axName);
+ if(ax.type === 'date') {
630
+ var truncate = function(v) { return v.substr(0, 10); };
631
+ expect(actual.map(truncate)).toEqual(expected.map(truncate), axName);
632
+ }
633
+ else {
634
+ expect(actual).toBeCloseToArray(expected, PRECISION, axName);
635
636
}
637
638
function assertActive(buttons, activeButton) {
0 commit comments