From a94af8cb6521bc516331ef23357b45b39cc1222b Mon Sep 17 00:00:00 2001 From: visiky <736929286@qq.com> Date: Tue, 7 Jun 2022 15:33:18 +0800 Subject: [PATCH] fix: lint error --- __tests__/bugs/bar-changedata-spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/__tests__/bugs/bar-changedata-spec.ts b/__tests__/bugs/bar-changedata-spec.ts index b313dbd315..8aad2de92f 100644 --- a/__tests__/bugs/bar-changedata-spec.ts +++ b/__tests__/bugs/bar-changedata-spec.ts @@ -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(); }); });