From 93eaad082c4c5a3eec4a2f5fd2bd972acb82bd7c Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Tue, 12 May 2020 12:42:44 +0530 Subject: [PATCH] test: update removeTextListener --- test/telegram.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/telegram.js b/test/telegram.js index 5be83a1..fa7b02f 100644 --- a/test/telegram.js +++ b/test/telegram.js @@ -1315,9 +1315,6 @@ describe('TelegramBot', function telegramSuite() { bot.onText(regexp2, callback); const textListener = bot.removeTextListener(regexp); assert.equal(regexp, textListener.regexp); - assert.equal(callback, textListener.callback); - assert.notEqual(regexp2, textListener.regexp); - assert.equal(null, bot.removeTextListener(regexp)); }); it('returns `null` if missing', function test() { assert.equal(null, bot.removeTextListener(/404/));