diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-05 10:36:19 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-09 09:18:07 +0200 |
commit | 84cae54e7a2595bea0c3ea106a4d111fd11a4ec6 (patch) | |
tree | 03fe73edf049ce60df6bbc34dcfb2031c07ea59c /server/tests/shared | |
parent | 7e0f50d6e0c7dc583d40e196c283eb20dc386ae6 (diff) | |
download | PeerTube-84cae54e7a2595bea0c3ea106a4d111fd11a4ec6.tar.gz PeerTube-84cae54e7a2595bea0c3ea106a4d111fd11a4ec6.tar.zst PeerTube-84cae54e7a2595bea0c3ea106a4d111fd11a4ec6.zip |
Add option to not transcode original resolution
Diffstat (limited to 'server/tests/shared')
-rw-r--r-- | server/tests/shared/streaming-playlists.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/tests/shared/streaming-playlists.ts b/server/tests/shared/streaming-playlists.ts index 7ca707f2e..4d82b3654 100644 --- a/server/tests/shared/streaming-playlists.ts +++ b/server/tests/shared/streaming-playlists.ts | |||
@@ -68,6 +68,9 @@ async function checkResolutionsInMasterPlaylist (options: { | |||
68 | 68 | ||
69 | expect(masterPlaylist).to.match(reg) | 69 | expect(masterPlaylist).to.match(reg) |
70 | } | 70 | } |
71 | |||
72 | const playlistsLength = masterPlaylist.split('\n').filter(line => line.startsWith('#EXT-X-STREAM-INF:BANDWIDTH=')) | ||
73 | expect(playlistsLength).to.have.lengthOf(resolutions.length) | ||
71 | } | 74 | } |
72 | 75 | ||
73 | export { | 76 | export { |