Skip to content

Commit

Permalink
test: update removeTextListener
Browse files Browse the repository at this point in the history
  • Loading branch information
kamikazechaser committed May 12, 2020
1 parent 917c20c commit 93eaad0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/));
Expand Down

0 comments on commit 93eaad0

Please sign in to comment.