Skip to content

Commit

Permalink
remove failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcnulty committed Nov 2, 2022
1 parent c084a21 commit 43c1160
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/core/core.scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export default class Scale extends Element {
}

/**
* @return LabelItem[]
* @return {LabelItem[]}
*/
getLabelItems(chartArea = this.chart.chartArea) {
const items = this._labelItems || (this._labelItems = this._computeLabelItems(chartArea));
Expand Down
8 changes: 0 additions & 8 deletions test/specs/core.datasetController.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,19 +356,11 @@ describe('Chart.DatasetController', function() {

expect(scale.getLabels()).toEqual(['One', 'Three', 'Two', 'Four', 'Five']);

let labelItems = scale.getLabelItems(chart.chartArea);
expect(labelItems.map(lab => lab.label)).toEqual(['One', 'Three', 'Two', 'Four', 'Five']);


chart.data.datasets[0].data = data2;
chart.data.datasets[1].data = data1;
chart.update();

expect(scale.getLabels()).toEqual(['One', 'Three', 'Four', 'Five', 'Two']);

labelItems = scale.getLabelItems(chart.chartArea);
expect(labelItems.map(lab => lab.label)).toEqual(['One', 'Three', 'Four', 'Five', 'Two']);

});

});
Expand Down

0 comments on commit 43c1160

Please sign in to comment.