Skip to content

Commit b12dc4d

Browse files
moltbot886claude
authored andcommitted
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) <[email protected]>
1 parent d264c76 commit b12dc4d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

extensions/telegram/src/send.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,12 @@ describe("sendMessageTelegram", () => {
379379
parse_mode: "HTML",
380380
message_thread_id: 271,
381381
reply_to_message_id: 100,
382+
allow_sending_without_reply: true,
382383
},
383384
secondCall: {
384385
message_thread_id: 271,
385386
reply_to_message_id: 100,
387+
allow_sending_without_reply: true,
386388
},
387389
},
388390
] as const;
@@ -820,10 +822,11 @@ describe("sendMessageTelegram", () => {
820822
options: {
821823
replyToMessageId: 999,
822824
},
823-
expectedVideoNote: { reply_to_message_id: 999 },
825+
expectedVideoNote: { reply_to_message_id: 999, allow_sending_without_reply: true },
824826
expectedMessage: {
825827
parse_mode: "HTML",
826828
reply_to_message_id: 999,
829+
allow_sending_without_reply: true,
827830
},
828831
},
829832
];
@@ -1094,6 +1097,7 @@ describe("sendMessageTelegram", () => {
10941097
parse_mode: "HTML",
10951098
message_thread_id: 271,
10961099
reply_to_message_id: 500,
1100+
allow_sending_without_reply: true,
10971101
},
10981102
},
10991103
{
@@ -1779,6 +1783,7 @@ describe("shared send behaviors", () => {
17791783
expect(sendMessage).toHaveBeenCalledWith(chatId, "reply text", {
17801784
parse_mode: "HTML",
17811785
reply_to_message_id: 100,
1786+
allow_sending_without_reply: true,
17821787
});
17831788
},
17841789
},
@@ -1801,6 +1806,7 @@ describe("shared send behaviors", () => {
18011806
});
18021807
expect(sendSticker).toHaveBeenCalledWith(chatId, fileId, {
18031808
reply_to_message_id: 500,
1809+
allow_sending_without_reply: true,
18041810
});
18051811
},
18061812
},

0 commit comments

Comments
 (0)