mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
fix(test): string is miscapitalized :(
This commit is contained in:
@@ -39,13 +39,13 @@ describe('POST /user/auth/verify-display-name', async () => {
|
|||||||
it('errors if display name contains a slur', async () => {
|
it('errors if display name contains a slur', async () => {
|
||||||
await expect(user.post(ENDPOINT, {
|
await expect(user.post(ENDPOINT, {
|
||||||
username: 'TESTPLACEHOLDERSLURWORDHERE_otherword',
|
username: 'TESTPLACEHOLDERSLURWORDHERE_otherword',
|
||||||
})).to.eventually.eql({ isUsable: false, issues: [t('displayNameIssueLength'), t('displaynameIssueSlur')] });
|
})).to.eventually.eql({ isUsable: false, issues: [t('displaynameIssueLength'), t('displaynameIssueSlur')] });
|
||||||
await expect(user.post(ENDPOINT, {
|
await expect(user.post(ENDPOINT, {
|
||||||
username: 'something_TESTPLACEHOLDERSLURWORDHERE',
|
username: 'something_TESTPLACEHOLDERSLURWORDHERE',
|
||||||
})).to.eventually.eql({ isUsable: false, issues: [t('displayNameIssueLength'), t('displaynameIssueSlur')] });
|
})).to.eventually.eql({ isUsable: false, issues: [t('displaynameIssueLength'), t('displaynameIssueSlur')] });
|
||||||
await expect(user.post(ENDPOINT, {
|
await expect(user.post(ENDPOINT, {
|
||||||
username: 'somethingTESTPLACEHOLDERSLURWORDHEREotherword',
|
username: 'somethingTESTPLACEHOLDERSLURWORDHEREotherword',
|
||||||
})).to.eventually.eql({ isUsable: false, issues: [t('displayNameIssueLength'), t('displaynameIssueSlur')] });
|
})).to.eventually.eql({ isUsable: false, issues: [t('displaynameIssueLength'), t('displaynameIssueSlur')] });
|
||||||
});
|
});
|
||||||
|
|
||||||
it('errors if display name has incorrect length', async () => {
|
it('errors if display name has incorrect length', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user