fix(add-telegram): update test assertions for 5-arg onChatMetadata signature

The telegram.ts implementation was updated to pass channel and isGroup
to onChatMetadata but the test file still asserted the old 3-arg form.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
gavrielc
2026-02-25 00:30:54 +02:00
parent ae2f339fcf
commit bc05d5fbea

View File

@@ -255,6 +255,8 @@ describe('TelegramChannel', () => {
'tg:100200300',
expect.any(String),
'Test Group',
'telegram',
true,
);
expect(opts.onMessage).toHaveBeenCalledWith(
'tg:100200300',
@@ -281,6 +283,8 @@ describe('TelegramChannel', () => {
'tg:999999',
expect.any(String),
'Test Group',
'telegram',
true,
);
expect(opts.onMessage).not.toHaveBeenCalled();
});
@@ -367,6 +371,8 @@ describe('TelegramChannel', () => {
'tg:100200300',
expect.any(String),
'Alice', // Private chats use sender name
'telegram',
false,
);
});
@@ -386,6 +392,8 @@ describe('TelegramChannel', () => {
'tg:100200300',
expect.any(String),
'Project Team',
'telegram',
true,
);
});