You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
329 B
JavaScript
12 lines
329 B
JavaScript
require('assert');
|
|
var Filter = require('../lib/badwords.js'),
|
|
filter = new Filter(),
|
|
assert = require('better-assert');
|
|
|
|
describe('filter', function(){
|
|
describe('replaceWord',function(){
|
|
it("Should replace a bad word with asterisks (******)",function(){
|
|
assert(filter.replaceWord("ash0le") == '******');
|
|
});
|
|
});
|
|
}); |