Skip to content

Commit

Permalink
test(removeWords): update test to be case-insensitive
Browse files Browse the repository at this point in the history
this would cause the remove functionality to fail if the case didn't match exactly

web-mech#50
  • Loading branch information
web-mech committed Feb 19, 2019
1 parent 216f946 commit b398740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/removeWords.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

Expand Down

0 comments on commit b398740

Please sign in to comment.