From fa255e14c6719666156972514cca9ce9adb3a3db Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Mon, 4 May 2026 16:30:23 +0900 Subject: [PATCH] test(create-managers): align openclaw mock with refactored BackgroundManager config object Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- src/create-managers.test.ts | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/create-managers.test.ts b/src/create-managers.test.ts index fa32bca4e..8dc0d1d3e 100644 --- a/src/create-managers.test.ts +++ b/src/create-managers.test.ts @@ -15,17 +15,10 @@ let backgroundManagerOptions: { const trackedPaneBySession = new Map() class MockBackgroundManager { - constructor( - _ctx: PluginInput, - _config?: unknown, - options?: { - tmuxConfig?: unknown - onSubagentSessionCreated?: (event: { sessionID: string; parentID: string; title: string }) => Promise - onShutdown?: () => void | Promise - enableParentSessionNotifications?: boolean - }, - ) { - backgroundManagerOptions = options ?? null + constructor(config: { + onSubagentSessionCreated?: (event: { sessionID: string; parentID: string; title: string }) => Promise + }) { + backgroundManagerOptions = config } }