Skip to content

Commit

Permalink
fix: unit test problems
Browse files Browse the repository at this point in the history
  • Loading branch information
zamhown committed Oct 24, 2023
1 parent 14b7bc9 commit 4b98660
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/vchart/__tests__/util/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export function modelOption(opt: Partial<IModelOption> = {}, chart?: TestChart):
export function seriesOption(opt: Partial<IModelOption> = {}, chart?: TestChart): ISeriesOption {
const option = modelOption(opt) as ISeriesOption;
option.globalScale = new GlobalScale([], chart as any);
option.getTheme = () => ThemeManager.getCurrentTheme();
option.region = (chart?.getAllRegions?.()?.[0] ?? new TestRegion({})) as IRegion;
option.onError = msg => {
console.log(msg);
Expand All @@ -65,7 +64,6 @@ export function seriesOption(opt: Partial<IModelOption> = {}, chart?: TestChart)

export function componentOption(opt: Partial<IModelOption> = {}, chart: TestChart): IComponentOption {
const option = modelOption(opt) as IComponentOption;
option.getTheme = () => ThemeManager.getCurrentTheme();
// 区域
option.getRegionsInIndex = chart.getRegionsInIndex.bind(chart);
option.getRegionsInIds = chart.getRegionsInIds.bind(chart);
Expand Down

0 comments on commit 4b98660

Please sign in to comment.