Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
visiky committed Jun 7, 2022
1 parent 6df14ee commit a94af8c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions __tests__/bugs/bar-changedata-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,16 @@ describe('bar changeData should keep order', () => {
});

barPlot.render();
const chartData = barPlot.chart.getData();
barPlot.changeData([
{ copyAlias: 'test4接口', cpuUtil: 35 },
{ copyAlias: 'test5接口', cpuUtil: 35 },
{ copyAlias: 'test6接口', cpuUtil: 35 },
]);

const boxes = barPlot.chart.geometries[0].elements.map(ele => ele.getBBox());
const boxes = barPlot.chart.geometries[0].elements.map((ele) => ele.getBBox());
expect(boxes[0].maxY).toBeLessThan(boxes[1].minY);
expect(boxes[1].maxY).toBeLessThan(boxes[2].minY);

// barPlot.destroy();
barPlot.destroy();
});
});

0 comments on commit a94af8c

Please sign in to comment.