aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/plugins')
-rw-r--r--server/tests/plugins/filter-hooks.ts2
-rw-r--r--server/tests/plugins/plugin-helpers.ts6
-rw-r--r--server/tests/plugins/plugin-transcoding.ts4
3 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts
index a02a53c50..a75a8c8fa 100644
--- a/server/tests/plugins/filter-hooks.ts
+++ b/server/tests/plugins/filter-hooks.ts
@@ -493,7 +493,7 @@ describe('Test plugin filter hooks', function () {
493 await servers[0].config.updateCustomSubConfig({ 493 await servers[0].config.updateCustomSubConfig({
494 newConfig: { 494 newConfig: {
495 transcoding: { 495 transcoding: {
496 webtorrent: { 496 webVideos: {
497 enabled: true 497 enabled: true
498 }, 498 },
499 hls: { 499 hls: {
diff --git a/server/tests/plugins/plugin-helpers.ts b/server/tests/plugins/plugin-helpers.ts
index e951a1299..f5a0cbe85 100644
--- a/server/tests/plugins/plugin-helpers.ts
+++ b/server/tests/plugins/plugin-helpers.ts
@@ -302,11 +302,11 @@ describe('Test plugin helpers', function () {
302 302
303 // Video files check 303 // Video files check
304 { 304 {
305 expect(body.webtorrent.videoFiles).to.be.an('array') 305 expect(body.webVideo.videoFiles).to.be.an('array')
306 expect(body.hls.videoFiles).to.be.an('array') 306 expect(body.hls.videoFiles).to.be.an('array')
307 307
308 for (const resolution of [ 144, 240, 360, 480, 720 ]) { 308 for (const resolution of [ 144, 240, 360, 480, 720 ]) {
309 for (const files of [ body.webtorrent.videoFiles, body.hls.videoFiles ]) { 309 for (const files of [ body.webVideo.videoFiles, body.hls.videoFiles ]) {
310 const file = files.find(f => f.resolution === resolution) 310 const file = files.find(f => f.resolution === resolution)
311 expect(file).to.exist 311 expect(file).to.exist
312 312
@@ -318,7 +318,7 @@ describe('Test plugin helpers', function () {
318 } 318 }
319 } 319 }
320 320
321 videoPath = body.webtorrent.videoFiles[0].path 321 videoPath = body.webVideo.videoFiles[0].path
322 } 322 }
323 323
324 // Thumbnails check 324 // Thumbnails check
diff --git a/server/tests/plugins/plugin-transcoding.ts b/server/tests/plugins/plugin-transcoding.ts
index 689eec5ac..21f82fbac 100644
--- a/server/tests/plugins/plugin-transcoding.ts
+++ b/server/tests/plugins/plugin-transcoding.ts
@@ -35,7 +35,7 @@ function updateConf (server: PeerTubeServer, vodProfile: string, liveProfile: st
35 hls: { 35 hls: {
36 enabled: true 36 enabled: true
37 }, 37 },
38 webtorrent: { 38 webVideos: {
39 enabled: true 39 enabled: true
40 }, 40 },
41 resolutions: { 41 resolutions: {
@@ -247,7 +247,7 @@ describe('Test transcoding plugins', function () {
247 247
248 const video = await server.videos.get({ id: videoUUID }) 248 const video = await server.videos.get({ id: videoUUID })
249 249
250 const path = server.servers.buildWebTorrentFilePath(video.files[0].fileUrl) 250 const path = server.servers.buildWebVideoFilePath(video.files[0].fileUrl)
251 const audioProbe = await getAudioStream(path) 251 const audioProbe = await getAudioStream(path)
252 expect(audioProbe.audioStream.codec_name).to.equal('opus') 252 expect(audioProbe.audioStream.codec_name).to.equal('opus')
253 253