Skip to content

Commit

Permalink
[Tests] Update
Browse files Browse the repository at this point in the history
- Set max-len at 200
- Fix eslint errors
  • Loading branch information
kamikazechaser committed Oct 31, 2018
1 parent 29e0038 commit 47bea20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"new-cap": 0,
"prefer-arrow-callback": 0,
"no-param-reassign": [2,{"props":false}],
"max-len": [2, 150],
"max-len": [2, 200],
"arrow-body-style": 0,
"comma-dangle": 0
},
Expand Down
4 changes: 2 additions & 2 deletions src/telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ class TelegramBot extends EventEmitter {
return Promise.reject(ex);
}
return this._request('sendAnimation', opts);
}
}

/**
* Use this method to send rounded square videos of upto 1 minute long.
Expand Down Expand Up @@ -1230,7 +1230,7 @@ class TelegramBot extends EventEmitter {
editMessageMedia(media, form = {}) {
form.media = stringify(media);
return this._request('editMessageMedia', { form });
}
}

/**
* Use this method to edit only the reply markup of messages
Expand Down
6 changes: 3 additions & 3 deletions test/telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -1450,14 +1450,14 @@ 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));
});
});
});
});
});
});
});
}); // End Telegram

0 comments on commit 47bea20

Please sign in to comment.