From 5ac85539e784a350e772ea21e5672d5c8bb5a002 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 14 Feb 2026 18:29:34 +0100 Subject: [PATCH] style: format telegram poll test --- src/telegram/send.poll.test.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/telegram/send.poll.test.ts b/src/telegram/send.poll.test.ts index a9ae06b28f..b2586020a6 100644 --- a/src/telegram/send.poll.test.ts +++ b/src/telegram/send.poll.test.ts @@ -23,12 +23,14 @@ describe("sendPollTelegram", () => { it("retries without message_thread_id on thread-not-found", async () => { const api = { - sendPoll: vi.fn(async (_chatId: string, _question: string, _options: string[], params: any) => { - if (params?.message_thread_id) { - throw new Error("400: Bad Request: message thread not found"); - } - return { message_id: 1, chat: { id: 2 }, poll: { id: "p2" } }; - }), + sendPoll: vi.fn( + async (_chatId: string, _question: string, _options: string[], params: any) => { + if (params?.message_thread_id) { + throw new Error("400: Bad Request: message thread not found"); + } + return { message_id: 1, chat: { id: 2 }, poll: { id: "p2" } }; + }, + ), }; const res = await sendPollTelegram( @@ -57,4 +59,3 @@ describe("sendPollTelegram", () => { expect(api.sendPoll).not.toHaveBeenCalled(); }); }); -