From 25111f3fee148d9b04b18b540d9f4a16d8538c64 Mon Sep 17 00:00:00 2001 From: yago Date: Sun, 12 Jul 2015 12:32:10 +0200 Subject: [PATCH] Add catch function on test getUpdates mock --- test/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();