aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/video-channels.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-09 13:49:50 +0200
committerChocobozzz <me@florianbigard.com>2018-05-09 13:49:50 +0200
commit9419b01352883fd8cd57f95c59555cff6b9c7404 (patch)
tree1258f0fb79b1d52ad4ac035abf0d7e5d6d207064 /server/tests/api/check-params/video-channels.ts
parenta10fc78bb0e00e98c8f59edc16cd323b9c8b0615 (diff)
downloadPeerTube-9419b01352883fd8cd57f95c59555cff6b9c7404.tar.gz
PeerTube-9419b01352883fd8cd57f95c59555cff6b9c7404.tar.zst
PeerTube-9419b01352883fd8cd57f95c59555cff6b9c7404.zip
Fix tests
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