GorkemsCafe/node_modules/bad-words/test/replaceWord.js
2023-09-28 18:03:39 +03:00

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") == '******');
});
});
});