fix: update sendMessage test expectations for Markdown parse_mode

The sendTelegramMessage helper now passes { parse_mode: 'Markdown' }
to bot.api.sendMessage, but three tests still expected only two args.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
gavrielc
2026-03-11 12:06:28 +02:00
parent 7061480ac0
commit 272cbcf18f

View File

@@ -710,6 +710,7 @@ describe('TelegramChannel', () => {
expect(currentBot().api.sendMessage).toHaveBeenCalledWith( expect(currentBot().api.sendMessage).toHaveBeenCalledWith(
'100200300', '100200300',
'Hello', 'Hello',
{ parse_mode: 'Markdown' },
); );
}); });
@@ -723,6 +724,7 @@ describe('TelegramChannel', () => {
expect(currentBot().api.sendMessage).toHaveBeenCalledWith( expect(currentBot().api.sendMessage).toHaveBeenCalledWith(
'-1001234567890', '-1001234567890',
'Group message', 'Group message',
{ parse_mode: 'Markdown' },
); );
}); });
@@ -739,11 +741,13 @@ describe('TelegramChannel', () => {
1, 1,
'100200300', '100200300',
'x'.repeat(4096), 'x'.repeat(4096),
{ parse_mode: 'Markdown' },
); );
expect(currentBot().api.sendMessage).toHaveBeenNthCalledWith( expect(currentBot().api.sendMessage).toHaveBeenNthCalledWith(
2, 2,
'100200300', '100200300',
'x'.repeat(904), 'x'.repeat(904),
{ parse_mode: 'Markdown' },
); );
}); });