Skip to content

Commit 16d1a16

Browse files
author
imartinezvazquez
committed
mockCalc: ensure ax is modified in-place
1 parent 1322729 commit 16d1a16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/jasmine/tests/axes_test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2722,7 +2722,8 @@ describe('Test axes', function() {
27222722

27232723
describe('calcTicks and tickText', function() {
27242724
function mockCalc(ax) {
2725-
ax = Object.assign({minexponent: 3}, ax);
2725+
if (ax.minexponent === undefined)
2726+
ax.minexponent = 3;
27262727
ax.tickfont = {};
27272728
Axes.setConvert(ax, {separators: '.,', _extraFormat: {
27282729
year: '%Y',

0 commit comments

Comments
 (0)