From 7fb39378d85d3c41e3cd1dbfbfd539060540a13f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 11 May 2018 16:17:49 +0200 Subject: [PATCH] Add check channel update test in video update --- server/tests/api/check-params/videos.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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 () { await makePutBodyRequest({ url: server.url, path: path + videoId, token: server.accessToken, fields }) }) + it('Should fail with a bad channel', async function () { + const fields = immutableAssign(baseCorrectParams, { channelId: 545454 }) + + await makePutBodyRequest({ url: server.url, path: path + videoId, token: server.accessToken, fields }) + }) + it('Should fail with too many tags', async function () { const fields = immutableAssign(baseCorrectParams, { tags: [ 'tag1', 'tag2', 'tag3', 'tag4', 'tag5', 'tag6' ] })