From: Chocobozzz Date: Fri, 11 May 2018 14:17:49 +0000 (+0200) Subject: Add check channel update test in video update X-Git-Tag: v1.0.0-beta.5~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7fb39378d85d3c41e3cd1dbfbfd539060540a13f;p=oweals%2Fpeertube.git Add check channel update test in video update --- 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' ] })