Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(sheets-table): register formula resolver in test bed (#7296)

Univer637b3a7e0f56
diff --git a/packages/sheets-table/src/controllers/__tests__/sheet-table-formula.integration.spec.ts b/packages/sheets-table/src/controllers/__tests__/sheet-table-formula.integration.spec.ts
index 3c765e450d..d6931e174b 100644
--- a/packages/sheets-table/src/controllers/__tests__/sheet-table-formula.integration.spec.ts
+++ b/packages/sheets-table/src/controllers/__tests__/sheet-table-formula.integration.spec.ts
@@ -46,6 +46,7 @@ import {
FormulaDataModel,
FormulaDependencyGenerator,
FormulaRuntimeService,
+ FormulaUnitReferenceResolver,
functionMath,
FunctionNodeFactory,
FunctionService,
@@ -57,6 +58,7 @@ import {
IFormulaCurrentConfigService,
IFormulaDependencyGenerator,
IFormulaRuntimeService,
+ IFormulaUnitReferenceResolver,
IFunctionService,
IHyperlinkEngineFormulaService,
Interpreter,
@@ -249,6 +251,7 @@ function createControllerTestBed() {
[ICalculateFormulaService, { useClass: CalculateFormulaService }],
[Lexer],
[IFormulaCurrentConfigService, { useClass: FormulaCurrentConfigService }],
+ [IFormulaUnitReferenceResolver, { useClass: FormulaUnitReferenceResolver }],
[IHyperlinkEngineFormulaService, { useClass: HyperlinkEngineFormulaService }],
[IFormulaRuntimeService, { useClass: FormulaRuntimeService }],
[IOtherFormulaManagerService, { useClass: OtherFormulaManagerService }],