2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 12:57:38 +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 {
then: function (cb) {
cb([{update_id: 0, message: {}}]);
}
return this;
},
catch: function () {}
};
};
bot._polling();