2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-31 06:16:07 +00:00

[webhook] Do not rely on http.Server#listening property

Bug:

  The 'http.Server#listening' property was added in Node.js v5.7.0!
  Support the older Node.js versions!
This commit is contained in:
GochoMugo
2017-01-09 16:49:06 +03:00
parent 6753f7befd
commit e009b60efa
2 changed files with 12 additions and 3 deletions

View File

@@ -54,6 +54,7 @@ describe('module.exports', function moduleExportsSuite() {
});
});
describe('TelegramBot', function telegramSuite() {
let bot;
let testbot;