fix(unit tests): re add code removed by mistake in stringUtils tests

This commit is contained in:
Matteo Pagliazzi
2020-04-28 17:00:57 +02:00
parent 61ca931e66
commit 9f91775e78

View File

@@ -4,7 +4,7 @@ import bannedWords from '../../../../website/server/libs/bannedWords';
describe('stringUtils', () => {
describe('getMatchesByWordArray', () => {
it('check all banned words are matched', async () => {
const message = bannedWords.join(',');
const message = bannedWords.join(',').replace(/\\/g, '');
const matches = getMatchesByWordArray(message, bannedWords);
expect(matches.length).to.equal(bannedWords.length);
});