mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
fix(Telegram Node): "source.on is not a function" in Telegram with binary file and Reply Markup (#16458)
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
sendAnimationMessageResponse,
|
||||
sendAudioResponse,
|
||||
getMemberResponse,
|
||||
sendMessageWithBinaryDataAndReplyMarkupResponse,
|
||||
} from './apiResponses';
|
||||
|
||||
describe('Telegram', () => {
|
||||
@@ -47,6 +48,17 @@ describe('Telegram', () => {
|
||||
mock.post('/bottestToken/getChatMember').reply(200, getMemberResponse);
|
||||
});
|
||||
|
||||
new NodeTestHarness().setupTests({ credentials });
|
||||
new NodeTestHarness().setupTests({ credentials, workflowFiles: ['workflow.json'] });
|
||||
});
|
||||
|
||||
describe('Binary Data and Reply Markup', () => {
|
||||
beforeAll(() => {
|
||||
const mock = nock(credentials.telegramApi.baseUrl);
|
||||
mock
|
||||
.post('/bottestToken/sendDocument')
|
||||
.reply(200, sendMessageWithBinaryDataAndReplyMarkupResponse);
|
||||
});
|
||||
|
||||
new NodeTestHarness().setupTests({ credentials, workflowFiles: ['binaryData.workflow.json'] });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user