From 19b5fc5bd36ecc0657c66ab1409bc89bb0a3e012 Mon Sep 17 00:00:00 2001 From: danielperez9430 Date: Tue, 7 Dec 2021 16:41:35 +0100 Subject: [PATCH] fix(Test): Update test for new chat invite link format --- test/telegram.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/telegram.js b/test/telegram.js index 95df8ef..5a11aad 100644 --- a/test/telegram.js +++ b/test/telegram.js @@ -904,7 +904,7 @@ describe('TelegramBot', function telegramSuite() { }); it('should export the group invite link', function test() { return bot.exportChatInviteLink(GROUPID).then(resp => { - assert(resp.match(/^https:\/\/t\.me\/joinchat\/.+$/i), 'is a telegram invite link'); + assert(resp.match(/^https:\/\/t\.me\/.+$/i), 'is a telegram invite link'); }); }); }); @@ -918,7 +918,7 @@ describe('TelegramBot', function telegramSuite() { }); it('should create a chat invite link', function test() { return bot.createChatInviteLink(GROUPID).then(resp => { - assert(resp.invite_link.match(/^https:\/\/t\.me\/joinchat\/.+$/i), 'is a telegram invite link'); + assert(resp.invite_link.match(/^https:\/\/t\.me\/.+$/i), 'is a telegram invite link'); inviteLink = resp.invite_link; }); });