diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-09 11:23:14 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-09 11:41:18 +0200 |
commit | 360329cc029c062bfb145c90f7bf1c007c39af81 (patch) | |
tree | a40fb8e31c0d40d65a83e9f0fbc12793230b5c0e /server/tests/api/check-params/videos.ts | |
parent | bf696869538eaef27e5a8445035967c01f214501 (diff) | |
download | PeerTube-360329cc029c062bfb145c90f7bf1c007c39af81.tar.gz PeerTube-360329cc029c062bfb145c90f7bf1c007c39af81.tar.zst PeerTube-360329cc029c062bfb145c90f7bf1c007c39af81.zip |
Account/channel descriptions are not required anymore
Diffstat (limited to 'server/tests/api/check-params/videos.ts')
-rw-r--r-- | server/tests/api/check-params/videos.ts | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts index 499a4fc94..2b341a5b3 100644 --- a/server/tests/api/check-params/videos.ts +++ b/server/tests/api/check-params/videos.ts | |||
@@ -231,13 +231,6 @@ describe('Test videos API validator', function () { | |||
231 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | 231 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) |
232 | }) | 232 | }) |
233 | 233 | ||
234 | it('Should fail with a bad nsfw attribute', async function () { | ||
235 | const fields = immutableAssign(baseCorrectParams, { nsfw: 2 }) | ||
236 | const attaches = baseCorrectAttaches | ||
237 | |||
238 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | ||
239 | }) | ||
240 | |||
241 | it('Should fail without commentsEnabled attribute', async function () { | 234 | it('Should fail without commentsEnabled attribute', async function () { |
242 | const fields = omit(baseCorrectParams, 'commentsEnabled') | 235 | const fields = omit(baseCorrectParams, 'commentsEnabled') |
243 | const attaches = baseCorrectAttaches | 236 | const attaches = baseCorrectAttaches |
@@ -245,13 +238,6 @@ describe('Test videos API validator', function () { | |||
245 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | 238 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) |
246 | }) | 239 | }) |
247 | 240 | ||
248 | it('Should fail with a bad commentsEnabled attribute', async function () { | ||
249 | const fields = immutableAssign(baseCorrectParams, { commentsEnabled: 2 }) | ||
250 | const attaches = baseCorrectAttaches | ||
251 | |||
252 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | ||
253 | }) | ||
254 | |||
255 | it('Should fail with a long description', async function () { | 241 | it('Should fail with a long description', async function () { |
256 | const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(2500) }) | 242 | const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(2500) }) |
257 | const attaches = baseCorrectAttaches | 243 | const attaches = baseCorrectAttaches |
@@ -485,18 +471,6 @@ describe('Test videos API validator', function () { | |||
485 | await makePutBodyRequest({ url: server.url, path: path + videoId, token: server.accessToken, fields }) | 471 | await makePutBodyRequest({ url: server.url, path: path + videoId, token: server.accessToken, fields }) |
486 | }) | 472 | }) |
487 | 473 | ||
488 | it('Should fail with a bad nsfw attribute', async function () { | ||
489 | const fields = immutableAssign(baseCorrectParams, { nsfw: 2 }) | ||
490 | |||
491 | await makePutBodyRequest({ url: server.url, path: path + videoId, token: server.accessToken, fields }) | ||
492 | }) | ||
493 | |||
494 | it('Should fail with a bad commentsEnabled attribute', async function () { | ||
495 | const fields = immutableAssign(baseCorrectParams, { commentsEnabled: 2 }) | ||
496 | |||
497 | await makePutBodyRequest({ url: server.url, path: path + videoId, token: server.accessToken, fields }) | ||
498 | }) | ||
499 | |||
500 | it('Should fail with a long description', async function () { | 474 | it('Should fail with a long description', async function () { |
501 | const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(2500) }) | 475 | const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(2500) }) |
502 | 476 | ||