Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add check channel update test in video update

Chocobozzz7fb39378d85d
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts
index 47fad7d5c1..33e8158062 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' ] })