Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcnulty committed Nov 2, 2022
1 parent 2cd3e47 commit 38c329a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/specs/core.scale.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,9 +720,9 @@ describe('Core.scale', function() {
}
}
});
const mapper = item => parseFloat(item.translation[0].toFixed(2));
const mapper = item => parseFloat(item.renderTextOptions.translation[0].toFixed(2));
const expected = [20.15, 113.6, 207.05, 300.5, 393.95, 487.4];
const actual = chart.scales.x._labelItems.map(mapper);
const actual = chart.scales.x.getLabelItems().map(mapper);
const len = expected.length;
for (let i = 0; i < len; ++i) {
const actualValue = actual[i];
Expand Down

0 comments on commit 38c329a

Please sign in to comment.