mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-28 21:07:39 +00:00
Add catch function on test getUpdates mock
This commit is contained in:
parent
446586d8ed
commit
25111f3fee
@ -43,7 +43,9 @@ describe('Telegram', function () {
|
|||||||
return {
|
return {
|
||||||
then: function (cb) {
|
then: function (cb) {
|
||||||
cb([{update_id: 0, message: {}}]);
|
cb([{update_id: 0, message: {}}]);
|
||||||
}
|
return this;
|
||||||
|
},
|
||||||
|
catch: function () {}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
bot._polling();
|
bot._polling();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user