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);