mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-23 22:55:24 +00:00
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:
committed by
Peter Steinberger
parent
d264c761cb
commit
b12dc4d04d
@@ -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,
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user