mirror of
https://github.com/HabitRPG/habitica.git
synced 2026-04-21 03:08:29 -05:00
remove underscores from test swear words and slurs - TRIGGER / CONTENT WARNING: assault, slurs, swearwords, etc
This is because real words don't contain them and the test words should mimic real words.
This commit is contained in:
@@ -23,8 +23,8 @@ const BASE_URL = nconf.get('BASE_URL');
|
||||
describe('POST /chat', () => {
|
||||
let user, groupWithChat, member, additionalMember;
|
||||
let testMessage = 'Test Message';
|
||||
let testBannedWordMessage = 'TEST_PLACEHOLDER_SWEAR_WORD_HERE';
|
||||
let testSlurMessage = 'message with TEST_PLACEHOLDER_SLUR_WORD_HERE';
|
||||
let testBannedWordMessage = 'TESTPLACEHOLDERSWEARWORDHERE';
|
||||
let testSlurMessage = 'message with TESTPLACEHOLDERSLURWORDHERE';
|
||||
let bannedWordErrorMessage = t('bannedWordUsed').split('.');
|
||||
bannedWordErrorMessage[0] += ` (${removePunctuationFromString(testBannedWordMessage.toLowerCase())})`;
|
||||
bannedWordErrorMessage = bannedWordErrorMessage.join('.');
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
|
||||
// DO NOT EDIT! See the comments at the top of this file.
|
||||
let bannedSlurs = [
|
||||
'TEST_PLACEHOLDER_SLUR_WORD_HERE',
|
||||
'TESTPLACEHOLDERSLURWORDHERE',
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
// DO NOT EDIT! See the comments at the top of this file.
|
||||
let bannedWords = [
|
||||
'TEST_PLACEHOLDER_SWEAR_WORD_HERE',
|
||||
'TESTPLACEHOLDERSWEARWORDHERE',
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user