diff --git a/test/removeWords.js b/test/removeWords.js index 067bc84..9a0caba 100644 --- a/test/removeWords.js +++ b/test/removeWords.js @@ -3,14 +3,17 @@ var Filter = require('../lib/badwords.js'), filter = new Filter(), assert = require('better-assert'); -describe('filter', function(){ - describe('removeWords',function(){ - it("Should allow you to remove words from the filter blacklist and no longer filter them",function(){ - let removingWords = ['hells', 'yea']; - filter.removeWords(...removingWords); +describe('filter', () => { + describe('removeWords',() => { + it('Should allow you to remove words from the filter blacklist and no longer filter them', () => { + filter.removeWords('hells'); assert(filter.clean('This is a hells good test') === 'This is a hells good test'); - filter.addWords('hells'); - assert(filter.clean('This is a hells good test') === 'This is a ***** good test'); + }); + + it ('Should allow you to remove an array of words from the filter blacklist and no longer filter them', () => { + let removingWords = ['hells', 'sadist']; + filter.removeWords(...removingWords); + assert(filter.clean('This is a hells sadist test') === 'This is a hells sadist test'); }); }); }); \ No newline at end of file