fix(telegram): update test expectations for allow_sending_without_reply

Update exact-match test assertions in send.test.ts to include the new
allow_sending_without_reply: true parameter. Tests using objectContaining
already pass, but several tests use exact object matching.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
moltbot886
2026-03-23 08:04:11 +08:00
committed by Peter Steinberger
parent d264c761cb
commit b12dc4d04d

View File

@@ -379,10 +379,12 @@ describe("sendMessageTelegram", () => {
parse_mode: "HTML",
message_thread_id: 271,
reply_to_message_id: 100,
allow_sending_without_reply: true,
},
secondCall: {
message_thread_id: 271,
reply_to_message_id: 100,
allow_sending_without_reply: true,
},
},
] as const;
@@ -820,10 +822,11 @@ describe("sendMessageTelegram", () => {
options: {
replyToMessageId: 999,
},
expectedVideoNote: { reply_to_message_id: 999 },
expectedVideoNote: { reply_to_message_id: 999, allow_sending_without_reply: true },
expectedMessage: {
parse_mode: "HTML",
reply_to_message_id: 999,
allow_sending_without_reply: true,
},
},
];
@@ -1094,6 +1097,7 @@ describe("sendMessageTelegram", () => {
parse_mode: "HTML",
message_thread_id: 271,
reply_to_message_id: 500,
allow_sending_without_reply: true,
},
},
{
@@ -1779,6 +1783,7 @@ describe("shared send behaviors", () => {
expect(sendMessage).toHaveBeenCalledWith(chatId, "reply text", {
parse_mode: "HTML",
reply_to_message_id: 100,
allow_sending_without_reply: true,
});
},
},
@@ -1801,6 +1806,7 @@ describe("shared send behaviors", () => {
});
expect(sendSticker).toHaveBeenCalledWith(chatId, fileId, {
reply_to_message_id: 500,
allow_sending_without_reply: true,
});
},
},