aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/tests/api/check-params/videos.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts
index 47fad7d5c..33e815806 100644
--- a/server/tests/api/check-params/videos.ts
+++ b/server/tests/api/check-params/videos.ts
@@ -483,6 +483,12 @@ describe('Test videos API validator', function () {
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 })
485 485
486 it('Should fail with a bad channel', async function () {
487 const fields = immutableAssign(baseCorrectParams, { channelId: 545454 })
488
489 await makePutBodyRequest({ url: server.url, path: path + videoId, token: server.accessToken, fields })
490 })
491
486 it('Should fail with too many tags', async function () { 492 it('Should fail with too many tags', async function () {
487 const fields = immutableAssign(baseCorrectParams, { tags: [ 'tag1', 'tag2', 'tag3', 'tag4', 'tag5', 'tag6' ] }) 493 const fields = immutableAssign(baseCorrectParams, { tags: [ 'tag1', 'tag2', 'tag3', 'tag4', 'tag5', 'tag6' ] })
488 494