diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-02 12:20:26 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-03 15:31:26 +0200 |
commit | 40298b02546e8225dd21bf6048fe7f224aefc32a (patch) | |
tree | 0a0b981dbeb2af47810adff6553a0df995a03734 /server/tests/api/video-transcoder.ts | |
parent | f0adb2701c1cf404ff63095f71e542bfe6d025ae (diff) | |
download | PeerTube-40298b02546e8225dd21bf6048fe7f224aefc32a.tar.gz PeerTube-40298b02546e8225dd21bf6048fe7f224aefc32a.tar.zst PeerTube-40298b02546e8225dd21bf6048fe7f224aefc32a.zip |
Implement video transcoding on server side
Diffstat (limited to 'server/tests/api/video-transcoder.ts')
-rw-r--r-- | server/tests/api/video-transcoder.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/tests/api/video-transcoder.ts b/server/tests/api/video-transcoder.ts index c6d4c61f5..b5d84d9e7 100644 --- a/server/tests/api/video-transcoder.ts +++ b/server/tests/api/video-transcoder.ts | |||
@@ -42,6 +42,8 @@ describe('Test video transcoding', function () { | |||
42 | 42 | ||
43 | const res = await getVideosList(servers[0].url) | 43 | const res = await getVideosList(servers[0].url) |
44 | const video = res.body.data[0] | 44 | const video = res.body.data[0] |
45 | expect(video.files).to.have.lengthOf(1) | ||
46 | |||
45 | const magnetUri = video.files[0].magnetUri | 47 | const magnetUri = video.files[0].magnetUri |
46 | expect(magnetUri).to.match(/\.webm/) | 48 | expect(magnetUri).to.match(/\.webm/) |
47 | 49 | ||
@@ -66,6 +68,8 @@ describe('Test video transcoding', function () { | |||
66 | const res = await getVideosList(servers[1].url) | 68 | const res = await getVideosList(servers[1].url) |
67 | 69 | ||
68 | const video = res.body.data[0] | 70 | const video = res.body.data[0] |
71 | expect(video.files).to.have.lengthOf(5) | ||
72 | |||
69 | const magnetUri = video.files[0].magnetUri | 73 | const magnetUri = video.files[0].magnetUri |
70 | expect(magnetUri).to.match(/\.mp4/) | 74 | expect(magnetUri).to.match(/\.mp4/) |
71 | 75 | ||