From 9f7a19536376657e12e453f2eab656f5f95678a8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 13 Dec 2018 16:25:15 +0100 Subject: Keep old channel/user name constraints In order to avoid compatibility issues --- server/tests/api/check-params/users.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tests') diff --git a/server/tests/api/check-params/users.ts b/server/tests/api/check-params/users.ts index 05f42bca9..ec35429d3 100644 --- a/server/tests/api/check-params/users.ts +++ b/server/tests/api/check-params/users.ts @@ -109,7 +109,7 @@ describe('Test users API validators', function () { }) it('Should fail with a too long username', async function () { - const fields = immutableAssign(baseCorrectParams, { username: 'super'.repeat(11) }) + const fields = immutableAssign(baseCorrectParams, { username: 'super'.repeat(50) }) await makePostBodyRequest({ url: server.url, path, token: server.accessToken, fields }) }) @@ -560,7 +560,7 @@ describe('Test users API validators', function () { }) it('Should fail with a too long username', async function () { - const fields = immutableAssign(baseCorrectParams, { username: 'super'.repeat(11) }) + const fields = immutableAssign(baseCorrectParams, { username: 'super'.repeat(50) }) await makePostBodyRequest({ url: server.url, path: registrationPath, token: server.accessToken, fields }) }) -- cgit v1.2.3