aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-14 18:21:14 +0100
committerChocobozzz <me@florianbigard.com>2018-02-14 18:33:06 +0100
commit7b0956ec4f7753c864c4cea220e6f189327baa93 (patch)
treeed6728632a5a53bcde55978e21c2b7296c104f7e /server/tests/utils/videos
parent3bcfff7f446d0a1d8ef5adf340375e178259a42c (diff)
downloadPeerTube-7b0956ec4f7753c864c4cea220e6f189327baa93.tar.gz
PeerTube-7b0956ec4f7753c864c4cea220e6f189327baa93.tar.zst
PeerTube-7b0956ec4f7753c864c4cea220e6f189327baa93.zip
Fix tests
Diffstat (limited to 'server/tests/utils/videos')
-rw-r--r--server/tests/utils/videos/videos.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts
index 8e58f1f0c..9a4af0b9f 100644
--- a/server/tests/utils/videos/videos.ts
+++ b/server/tests/utils/videos/videos.ts
@@ -445,13 +445,11 @@ async function completeVideoCheck (
445 expect(file.size).to.be.above(minSize).and.below(maxSize) 445 expect(file.size).to.be.above(minSize).and.below(maxSize)
446 446
447 { 447 {
448 const test = await testImage(url, attributes.thumbnailfile || attributes.fixture, videoDetails.thumbnailPath) 448 await testImage(url, attributes.thumbnailfile || attributes.fixture, videoDetails.thumbnailPath)
449 expect(test).to.equal(true)
450 } 449 }
451 450
452 if (attributes.previewfile) { 451 if (attributes.previewfile) {
453 const test = await testImage(url, attributes.previewfile, videoDetails.previewPath) 452 await testImage(url, attributes.previewfile, videoDetails.previewPath)
454 expect(test).to.equal(true)
455 } 453 }
456 454
457 const torrent = await webtorrentAdd(magnetUri, true) 455 const torrent = await webtorrentAdd(magnetUri, true)