From 1ef30b82b2c4ca2d2d5ecf9950b19f5324d6ecd5 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 22 Feb 2026 00:09:57 +0100 Subject: [PATCH] fix(test): guard optional forum topic options --- src/telegram/send.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegram/send.test.ts b/src/telegram/send.test.ts index 6eb633e54..ce812a0ea 100644 --- a/src/telegram/send.test.ts +++ b/src/telegram/send.test.ts @@ -1487,7 +1487,7 @@ describe("createForumTopicTelegram", () => { const result = await createForumTopicTelegram(testCase.target, testCase.title, { token: "tok", api, - ...testCase.options, + ...("options" in testCase ? testCase.options : {}), }); expect(createForumTopic).toHaveBeenCalledWith(...testCase.expectedCall);