Skip to content

Commit

Permalink
test(*): update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
web-mech committed Oct 23, 2018
1 parent 327cbc8 commit 2e7e2e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/addWords.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('filter', function(){
});

it('Should allow a list to be passed to the constructor', function() {
var filter = new Filter({
filter = new Filter({
list: ['dog']
});

Expand Down
2 changes: 2 additions & 0 deletions test/removeWords.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ describe('filter', () => {

it ('Should allow you to remove an array of words from the filter blacklist and no longer filter them', () => {
let removingWords = ['hells', 'sadist'];

filter = new Filter();
filter.removeWords(...removingWords);
assert(filter.clean('This is a hells sadist test') === 'This is a hells sadist test');
});
Expand Down

0 comments on commit 2e7e2e7

Please sign in to comment.