fix: align telegram probe test mock

This commit is contained in:
Ayaan Zaidi 2026-03-16 18:35:03 +05:30
parent 1b31ede435
commit 5f78057ffa
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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")