mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 05:38:46 +00: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:
parent
a88cdaf1fc
commit
0b735abd44
3 changed files with 4 additions and 4 deletions
|
|
@ -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',
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue