mirror of https://github.com/openclaw/openclaw.git
fix: align telegram probe test mock
This commit is contained in:
parent
1b31ede435
commit
5f78057ffa
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue