Add catch function on test getUpdates mock

experimental
yago 11 years ago
parent 446586d8ed
commit 25111f3fee
  1. 4
      test/index.js

@ -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…
Cancel
Save