diff --git a/packages/vchart/__tests__/unit/chart/histogram.test.ts b/packages/vchart/__tests__/unit/chart/histogram.test.ts index 609ed8714b..4e5c9db8f9 100644 --- a/packages/vchart/__tests__/unit/chart/histogram.test.ts +++ b/packages/vchart/__tests__/unit/chart/histogram.test.ts @@ -89,7 +89,7 @@ describe('histogram chart test', () => { }); // mark - expect(series.getMarks().length).toEqual(3); + expect(series.getMarks().length).toEqual(2); expect(chart.getRegionsInIndex().length).toEqual(1); expect(series.getRegion().id).toEqual(chart.getRegionsInIndex()[0].id); diff --git a/packages/vchart/__tests__/unit/morph/morph.test.ts b/packages/vchart/__tests__/unit/morph/morph.test.ts index c303bc711a..9bec7a4802 100644 --- a/packages/vchart/__tests__/unit/morph/morph.test.ts +++ b/packages/vchart/__tests__/unit/morph/morph.test.ts @@ -154,12 +154,12 @@ describe('Bar chart test', () => { const barSeries = barChart.getAllSeries()[0]; const scatterSeries = scatterChart.getAllSeries()[0]; - expect(barSeries.getMarksInType('rect')[1].getMorphKey()).toEqual( + expect(barSeries.getMarksInType('rect')[0].getMorphKey()).toEqual( scatterSeries.getMarksInType('symbol')[0].getMorphKey() ); - expect(barSeries.getMarksInType('rect')[1].getMorphElementKey()).toBe('name'); - expect(barSeries.getMarksInType('rect')[1].getMorphElementKey()).toEqual( + expect(barSeries.getMarksInType('rect')[0].getMorphElementKey()).toBe('name'); + expect(barSeries.getMarksInType('rect')[0].getMorphElementKey()).toEqual( scatterSeries.getMarksInType('symbol')[0].getMorphElementKey() ); });