mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-22 09:57:10 +00:00
fix(Test): Update test for new chat invite link format
This commit is contained in:
parent
68ac69cf99
commit
19b5fc5bd3
@ -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;
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user