aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/video-channels.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/video-channels.ts')
-rw-r--r--server/tests/api/check-params/video-channels.ts8
1 files changed, 4 insertions, 4 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