aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r--server/tests/api/check-params/video-channels.ts8
-rw-r--r--server/tests/api/check-params/videos.ts4
2 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/api/check-params/video-channels.ts b/server/tests/api/check-params/video-channels.ts
index 40a8e97cc..56b990be6 100644
--- a/server/tests/api/check-params/video-channels.ts
+++ b/server/tests/api/check-params/video-channels.ts
@@ -116,12 +116,12 @@ describe('Test video channels API validator', function () {
116 }) 116 })
117 117
118 it('Should fail with a long description', async function () { 118 it('Should fail with a long description', async function () {
119 const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(60) }) 119 const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(150) })
120 await makePostBodyRequest({ url: server.url, path: videoChannelPath, token: server.accessToken, fields }) 120 await makePostBodyRequest({ url: server.url, path: videoChannelPath, token: server.accessToken, fields })
121 }) 121 })
122 122
123 it('Should fail with a long support text', async function () { 123 it('Should fail with a long support text', async function () {
124 const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(70) }) 124 const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(150) })
125 await makePostBodyRequest({ url: server.url, path: videoChannelPath, token: server.accessToken, fields }) 125 await makePostBodyRequest({ url: server.url, path: videoChannelPath, token: server.accessToken, fields })
126 }) 126 })
127 127
@@ -173,12 +173,12 @@ describe('Test video channels API validator', function () {
173 }) 173 })
174 174
175 it('Should fail with a long description', async function () { 175 it('Should fail with a long description', async function () {
176 const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(60) }) 176 const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(150) })
177 await makePutBodyRequest({ url: server.url, path, token: server.accessToken, fields }) 177 await makePutBodyRequest({ url: server.url, path, token: server.accessToken, fields })
178 }) 178 })
179 179
180 it('Should fail with a long support text', async function () { 180 it('Should fail with a long support text', async function () {
181 const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(70) }) 181 const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(150) })
182 await makePutBodyRequest({ url: server.url, path, token: server.accessToken, fields }) 182 await makePutBodyRequest({ url: server.url, path, token: server.accessToken, fields })
183 }) 183 })
184 184
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts
index 2b341a5b3..47fad7d5c 100644
--- a/server/tests/api/check-params/videos.ts
+++ b/server/tests/api/check-params/videos.ts
@@ -246,7 +246,7 @@ describe('Test videos API validator', function () {
246 }) 246 })
247 247
248 it('Should fail with a long support text', async function () { 248 it('Should fail with a long support text', async function () {
249 const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(70) }) 249 const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(150) })
250 const attaches = baseCorrectAttaches 250 const attaches = baseCorrectAttaches
251 251
252 await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) 252 await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches })
@@ -478,7 +478,7 @@ describe('Test videos API validator', function () {
478 }) 478 })
479 479
480 it('Should fail with a long support text', async function () { 480 it('Should fail with a long support text', async function () {
481 const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(70) }) 481 const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(150) })
482 482
483 await makePutBodyRequest({ url: server.url, path: path + videoId, token: server.accessToken, fields }) 483 await makePutBodyRequest({ url: server.url, path: path + videoId, token: server.accessToken, fields })
484 }) 484 })