diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-11 16:17:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-11 16:17:49 +0200 |
commit | 7fb39378d85d3c41e3cd1dbfbfd539060540a13f (patch) | |
tree | 97b7ae4515a539c3db219907b3cccc1882803daf /server/tests/api/check-params/videos.ts | |
parent | 938d3fa0ffb4cf3e4c88f94dcfcae5eb2ce5e190 (diff) | |
download | PeerTube-7fb39378d85d3c41e3cd1dbfbfd539060540a13f.tar.gz PeerTube-7fb39378d85d3c41e3cd1dbfbfd539060540a13f.tar.zst PeerTube-7fb39378d85d3c41e3cd1dbfbfd539060540a13f.zip |
Add check channel update test in video update
Diffstat (limited to 'server/tests/api/check-params/videos.ts')
-rw-r--r-- | server/tests/api/check-params/videos.ts | 6 |
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 | ||