aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-14 09:36:55 +0200
committerChocobozzz <me@florianbigard.com>2021-10-14 09:36:55 +0200
commit179bfea5e053c6668bf72f60f0f5f214c27e3172 (patch)
tree2d157e36968c998f514781fb61cb406fbd210d2e /server/tests/api/videos
parent87c0f718dc91514eb3674eda61a5ef6facef55ac (diff)
downloadPeerTube-179bfea5e053c6668bf72f60f0f5f214c27e3172.tar.gz
PeerTube-179bfea5e053c6668bf72f60f0f5f214c27e3172.tar.zst
PeerTube-179bfea5e053c6668bf72f60f0f5f214c27e3172.zip
Fix import tests
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r--server/tests/api/videos/video-imports.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts
index 2f49bfc56..4686d5800 100644
--- a/server/tests/api/videos/video-imports.ts
+++ b/server/tests/api/videos/video-imports.ts
@@ -294,11 +294,11 @@ Ajouter un sous-titre est vraiment facile`)
294 transcoding: { 294 transcoding: {
295 enabled: true, 295 enabled: true,
296 resolutions: { 296 resolutions: {
297 '240p': false, 297 '240p': true,
298 '360p': false, 298 '360p': false,
299 '480p': false, 299 '480p': false,
300 '720p': false, 300 '720p': false,
301 '1080p': true, // the resulting resolution shouldn't be higher than this, and not vp9.2/av01 301 '1080p': false, // the resulting resolution shouldn't be higher than this, and not vp9.2/av01
302 '1440p': false, 302 '1440p': false,
303 '2160p': false 303 '2160p': false
304 }, 304 },
@@ -333,7 +333,7 @@ Ajouter un sous-titre est vraiment facile`)
333 const video = await servers[0].videos.get({ id: videoUUID }) 333 const video = await servers[0].videos.get({ id: videoUUID })
334 expect(video.name).to.equal('hdr video') 334 expect(video.name).to.equal('hdr video')
335 const maxResolution = Math.max.apply(Math, video.files.map(function (o) { return o.resolution.id })) 335 const maxResolution = Math.max.apply(Math, video.files.map(function (o) { return o.resolution.id }))
336 expect(maxResolution, 'expected max resolution not met').to.equals(VideoResolution.H_1080P) 336 expect(maxResolution, 'expected max resolution not met').to.equals(VideoResolution.H_240P)
337 }) 337 })
338 338
339 it('Should import a peertube video', async function () { 339 it('Should import a peertube video', async function () {