aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-10 14:25:29 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-11 07:57:20 +0200
commit30bc55c88b3b7416c2224925e88639694fd32746 (patch)
treeaebe3b1b8657198e432080f7d15a5694f19a8389 /server/tests
parent560605026bfadab711cf6d34e9c7ea865887816a (diff)
downloadPeerTube-30bc55c88b3b7416c2224925e88639694fd32746.tar.gz
PeerTube-30bc55c88b3b7416c2224925e88639694fd32746.tar.zst
PeerTube-30bc55c88b3b7416c2224925e88639694fd32746.zip
Refactor video extensions logic in server
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/server/config.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts
index f5183042c..60efd332c 100644
--- a/server/tests/api/server/config.ts
+++ b/server/tests/api/server/config.ts
@@ -363,10 +363,12 @@ describe('Test config', function () {
363 }) 363 })
364 364
365 it('Should have the correct updated video allowed extensions', async function () { 365 it('Should have the correct updated video allowed extensions', async function () {
366 this.timeout(10000)
367
366 const res = await getConfig(server.url) 368 const res = await getConfig(server.url)
367 const data: ServerConfig = res.body 369 const data: ServerConfig = res.body
368 370
369 expect(data.video.file.extensions).to.have.length.above(3) 371 expect(data.video.file.extensions).to.have.length.above(4)
370 expect(data.video.file.extensions).to.contain('.mp4') 372 expect(data.video.file.extensions).to.contain('.mp4')
371 expect(data.video.file.extensions).to.contain('.webm') 373 expect(data.video.file.extensions).to.contain('.webm')
372 expect(data.video.file.extensions).to.contain('.ogv') 374 expect(data.video.file.extensions).to.contain('.ogv')