2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-31 06:16:07 +00:00

[Tests] Update

- Set max-len at 200
- Fix eslint errors
This commit is contained in:
Mohammed Sohail Sameja
2018-10-31 21:34:24 +05:30
parent 29e0038bf3
commit 47bea20539
3 changed files with 6 additions and 6 deletions

View File

@@ -1450,8 +1450,8 @@ describe('TelegramBot', function telegramSuite() {
before(function before() {
utils.handleRatelimit(bot, 'editMessageMedia', this);
});
it('should edit a media message', function test() {
return bot.editMessageMedia({ type: 'animation', media: resp.document.file_id, caption: 'media message edited'}, { chat_id: resp.chat.id, message_id: resp.message_id}).then(editedResp => {
it('should edit a media message', function nextTest() {
return bot.editMessageMedia({ type: 'animation', media: resp.document.file_id, caption: 'edited' }, { chat_id: resp.chat.id, message_id: resp.message_id }).then(editedResp => {
assert.ok(is.object(editedResp));
assert.ok(is.string(editedResp.caption));
});
@@ -1459,5 +1459,5 @@ describe('TelegramBot', function telegramSuite() {
});
});
});
});
});
}); // End Telegram