Skip to content

Commit

Permalink
fix: update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
zamhown committed Oct 26, 2023
1 parent b53fe12 commit 6fe010e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/vchart/__tests__/unit/chart/histogram.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions packages/vchart/__tests__/unit/morph/morph.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
});
Expand Down

0 comments on commit 6fe010e

Please sign in to comment.