From 784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jul 2023 09:21:13 +0200 Subject: Prefer web videos in favour of webtorrent --- server/tests/plugins/plugin-helpers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/tests/plugins/plugin-helpers.ts') 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 () { // Video files check { - expect(body.webtorrent.videoFiles).to.be.an('array') + expect(body.webVideo.videoFiles).to.be.an('array') expect(body.hls.videoFiles).to.be.an('array') for (const resolution of [ 144, 240, 360, 480, 720 ]) { - for (const files of [ body.webtorrent.videoFiles, body.hls.videoFiles ]) { + for (const files of [ body.webVideo.videoFiles, body.hls.videoFiles ]) { const file = files.find(f => f.resolution === resolution) expect(file).to.exist @@ -318,7 +318,7 @@ describe('Test plugin helpers', function () { } } - videoPath = body.webtorrent.videoFiles[0].path + videoPath = body.webVideo.videoFiles[0].path } // Thumbnails check -- cgit v1.2.3