2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-31 22:35:38 +00:00

test: update removeTextListener

This commit is contained in:
Mohammed Sohail
2020-05-12 12:42:44 +05:30
parent 917c20c2c7
commit 93eaad082c

View File

@@ -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/));