diff --git a/packages/vchart/__tests__/util/context.ts b/packages/vchart/__tests__/util/context.ts index 4f92b7a2bf..aba5d6eb4d 100644 --- a/packages/vchart/__tests__/util/context.ts +++ b/packages/vchart/__tests__/util/context.ts @@ -51,7 +51,6 @@ export function modelOption(opt: Partial = {}, chart?: TestChart): export function seriesOption(opt: Partial = {}, 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); @@ -65,7 +64,6 @@ export function seriesOption(opt: Partial = {}, chart?: TestChart) export function componentOption(opt: Partial = {}, 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);