aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-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 })