diff --git a/test/index.js b/test/index.js index af5aa98..4bf5ad1 100644 --- a/test/index.js +++ b/test/index.js @@ -43,7 +43,9 @@ describe('Telegram', function () { return { then: function (cb) { cb([{update_id: 0, message: {}}]); - } + return this; + }, + catch: function () {} }; }; bot._polling();