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.

test(docs-ui): update menu manager mock (#7722)

wpxp1234563160db50ff86
diff --git a/packages/docs-ui/src/views/mobile-doc-toolbar/__tests__/MobileDocToolbar.spec.ts b/packages/docs-ui/src/views/mobile-doc-toolbar/__tests__/MobileDocToolbar.spec.ts
index d0401d05a5..6bd8766872 100644
--- a/packages/docs-ui/src/views/mobile-doc-toolbar/__tests__/MobileDocToolbar.spec.ts
+++ b/packages/docs-ui/src/views/mobile-doc-toolbar/__tests__/MobileDocToolbar.spec.ts
@@ -136,6 +136,7 @@ function createMenuManager(entries: Array<[string, IMenuSchema[]]>): IMenuManage
menuChanged$: new Subject<void>(),
mergeMenu: () => undefined,
appendRootMenu: () => undefined,
+ updateMenuConfig: () => undefined,
getMenuByPositionKey: (position) => schemas.get(position) ?? [],
getFlatMenuByPositionKey: (position) => schemas.get(position) ?? [],
};