diff options
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 { |