aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-12-13 16:25:15 +0100
committerChocobozzz <me@florianbigard.com>2018-12-13 16:26:47 +0100
commit9f7a19536376657e12e453f2eab656f5f95678a8 (patch)
tree36a4175c01f2c426178a2916b5e8bcb4493d743b /server/tests
parent16c07398f2ed884b9223b3e18c5e541cf9ab8469 (diff)
downloadPeerTube-9f7a19536376657e12e453f2eab656f5f95678a8.tar.gz
PeerTube-9f7a19536376657e12e453f2eab656f5f95678a8.tar.zst
PeerTube-9f7a19536376657e12e453f2eab656f5f95678a8.zip
Keep old channel/user name constraints
In order to avoid compatibility issues
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/check-params/users.ts4
1 files changed, 2 insertions, 2 deletions
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 () {
109 }) 109 })
110 110
111 it('Should fail with a too long username', async function () { 111 it('Should fail with a too long username', async function () {
112 const fields = immutableAssign(baseCorrectParams, { username: 'super'.repeat(11) }) 112 const fields = immutableAssign(baseCorrectParams, { username: 'super'.repeat(50) })
113 113
114 await makePostBodyRequest({ url: server.url, path, token: server.accessToken, fields }) 114 await makePostBodyRequest({ url: server.url, path, token: server.accessToken, fields })
115 }) 115 })
@@ -560,7 +560,7 @@ describe('Test users API validators', function () {
560 }) 560 })
561 561
562 it('Should fail with a too long username', async function () { 562 it('Should fail with a too long username', async function () {
563 const fields = immutableAssign(baseCorrectParams, { username: 'super'.repeat(11) }) 563 const fields = immutableAssign(baseCorrectParams, { username: 'super'.repeat(50) })
564 564
565 await makePostBodyRequest({ url: server.url, path: registrationPath, token: server.accessToken, fields }) 565 await makePostBodyRequest({ url: server.url, path: registrationPath, token: server.accessToken, fields })
566 }) 566 })