From ad8bf01f56a51da48a9bd8b2d4bc0120ad15e08a Mon Sep 17 00:00:00 2001 From: Riddler Date: Tue, 7 Jul 2015 13:58:20 +0530 Subject: [PATCH] Add SendDocument Test --- test/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.js b/test/index.js index 84b3af5..cd4adb2 100644 --- a/test/index.js +++ b/test/index.js @@ -217,7 +217,7 @@ describe('Telegram', function () { }); }); - it('should send a photo from id', function (done) { + it('should send a document from id', function (done) { var bot = new Telegram(TOKEN); // Send the same photo as before var document = documentId; @@ -227,7 +227,7 @@ describe('Telegram', function () { }); }); - it('should send a photo from fs.readStream', function (done) { + it('should send a document from fs.readStream', function (done) { var bot = new Telegram(TOKEN); var document = fs.createReadStream(__dirname+'/bot.gif'); bot.sendDocument(USERID, document).then(function (resp) {