aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-13 12:00:13 +0200
committerChocobozzz <me@florianbigard.com>2022-09-13 12:00:13 +0200
commit367a9dc69975a0db01962dbb7106635fb8eb1696 (patch)
treeedcae09eb37dc50012c66c229a7e0d3fa23a2084 /server/tests/shared
parent9f244885f0974730c488233827b63ff0ff08319e (diff)
downloadPeerTube-367a9dc69975a0db01962dbb7106635fb8eb1696.tar.gz
PeerTube-367a9dc69975a0db01962dbb7106635fb8eb1696.tar.zst
PeerTube-367a9dc69975a0db01962dbb7106635fb8eb1696.zip
Don't display remove file icon in some cases
Diffstat (limited to 'server/tests/shared')
-rw-r--r--server/tests/shared/videos.ts13
1 files changed, 1 insertions, 12 deletions
diff --git a/server/tests/shared/videos.ts b/server/tests/shared/videos.ts
index 3ab245392..e18329e07 100644
--- a/server/tests/shared/videos.ts
+++ b/server/tests/shared/videos.ts
@@ -241,16 +241,6 @@ async function uploadRandomVideoOnServers (
241 return res 241 return res
242} 242}
243 243
244function getAllFiles (video: VideoDetails) {
245 const files = video.files
246
247 if (video.streamingPlaylists[0]) {
248 return files.concat(video.streamingPlaylists[0].files)
249 }
250
251 return files
252}
253
254// --------------------------------------------------------------------------- 244// ---------------------------------------------------------------------------
255 245
256export { 246export {
@@ -258,6 +248,5 @@ export {
258 checkUploadVideoParam, 248 checkUploadVideoParam,
259 uploadRandomVideoOnServers, 249 uploadRandomVideoOnServers,
260 checkVideoFilesWereRemoved, 250 checkVideoFilesWereRemoved,
261 saveVideoInServers, 251 saveVideoInServers
262 getAllFiles
263} 252}