mirror of
https://github.com/DeNNiiInc/Connect-5.git
synced 2026-04-18 13:55:59 +00:00
Add complete multiplayer system with real-time gameplay, challenge system, and 50x50 board option
This commit is contained in:
21
node_modules/bad-words/test/removeWords.js
generated
vendored
Normal file
21
node_modules/bad-words/test/removeWords.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
require('assert');
|
||||
var Filter = require('../lib/badwords.js'),
|
||||
filter = new Filter(),
|
||||
assert = require('better-assert');
|
||||
|
||||
describe('filter', () => {
|
||||
describe('removeWords',() => {
|
||||
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');
|
||||
});
|
||||
|
||||
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');
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user