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:
parent
917c20c2c7
commit
93eaad082c
@ -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/));
|
||||
|
Loading…
x
Reference in New Issue
Block a user