2
0
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:
yago 2015-07-12 12:32:10 +02:00
parent 446586d8ed
commit 25111f3fee

View File

@ -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();