mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-30 22:05:28 +00:00
[Tests] Update
- Set max-len at 200 - Fix eslint errors
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
"new-cap": 0,
|
"new-cap": 0,
|
||||||
"prefer-arrow-callback": 0,
|
"prefer-arrow-callback": 0,
|
||||||
"no-param-reassign": [2,{"props":false}],
|
"no-param-reassign": [2,{"props":false}],
|
||||||
"max-len": [2, 150],
|
"max-len": [2, 200],
|
||||||
"arrow-body-style": 0,
|
"arrow-body-style": 0,
|
||||||
"comma-dangle": 0
|
"comma-dangle": 0
|
||||||
},
|
},
|
||||||
|
@@ -1450,8 +1450,8 @@ describe('TelegramBot', function telegramSuite() {
|
|||||||
before(function before() {
|
before(function before() {
|
||||||
utils.handleRatelimit(bot, 'editMessageMedia', this);
|
utils.handleRatelimit(bot, 'editMessageMedia', this);
|
||||||
});
|
});
|
||||||
it('should edit a media message', function test() {
|
it('should edit a media message', function nextTest() {
|
||||||
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 => {
|
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.object(editedResp));
|
||||||
assert.ok(is.string(editedResp.caption));
|
assert.ok(is.string(editedResp.caption));
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user