From b39874004de7f013562bedb2cbdcdb92981f4fdb Mon Sep 17 00:00:00 2001 From: webmech Date: Mon, 18 Feb 2019 21:41:36 -0500 Subject: [PATCH] test(removeWords): update test to be case-insensitive this would cause the remove functionality to fail if the case didn't match exactly https://github.com/web-mech/badwords/issues/50 --- test/removeWords.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/removeWords.js b/test/removeWords.js index 9c882c1..e21220c 100644 --- a/test/removeWords.js +++ b/test/removeWords.js @@ -5,8 +5,8 @@ var Filter = require('../lib/badwords.js'), describe('filter', () => { describe('removeWords',() => { - it('Should allow you to remove words from the filter blacklist and no longer filter them', () => { - filter.removeWords('hells'); + it('Should allow you to remove words from the filter blacklist and no longer filter them (case-insensitive)', () => { + filter.removeWords('Hells'); assert(filter.clean('This is a hells good test') === 'This is a hells good test'); });