2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-22 09:57:10 +00:00

test: update removeTextListener

This commit is contained in:
Mohammed Sohail 2020-05-12 12:42:44 +05:30
parent 917c20c2c7
commit 93eaad082c
No known key found for this signature in database
GPG Key ID: 7DD45520C01CD85D

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