mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-21 15:01:03 +00:00
fix: align telegram probe test mock
This commit is contained in:
@@ -63,8 +63,8 @@ function installGatewayRuntime(params?: { probeOk?: boolean; botUsername?: strin
|
||||
.spyOn(probeModule, "probeTelegram")
|
||||
.mockImplementation(async () =>
|
||||
params?.probeOk
|
||||
? { ok: true, bot: { username: params.botUsername ?? "bot" } }
|
||||
: { ok: false },
|
||||
? { ok: true, bot: { username: params.botUsername ?? "bot" }, elapsedMs: 0 }
|
||||
: { ok: false, elapsedMs: 0 },
|
||||
);
|
||||
const collectUnmentionedGroupIds = vi
|
||||
.spyOn(auditModule, "collectTelegramUnmentionedGroupIds")
|
||||
|
||||
Reference in New Issue
Block a user