aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/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/api/videos
parent3bcfff7f446d0a1d8ef5adf340375e178259a42c (diff)
downloadPeerTube-7b0956ec4f7753c864c4cea220e6f189327baa93.tar.gz
PeerTube-7b0956ec4f7753c864c4cea220e6f189327baa93.tar.zst
PeerTube-7b0956ec4f7753c864c4cea220e6f189327baa93.zip
Fix tests
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r--server/tests/api/videos/multiple-servers.ts3
-rw-r--r--server/tests/api/videos/single-server.ts4
-rw-r--r--server/tests/api/videos/video-comments.ts3
3 files changed, 3 insertions, 7 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts
index 3646fbb0f..85d158d61 100644
--- a/server/tests/api/videos/multiple-servers.ts
+++ b/server/tests/api/videos/multiple-servers.ts
@@ -641,8 +641,7 @@ describe('Test multiple servers', function () {
641 const res = await getVideo(server.url, videoUUID) 641 const res = await getVideo(server.url, videoUUID)
642 const video = res.body 642 const video = res.body
643 643
644 const test = await testImage(server.url, 'video_short1-preview.webm', video.previewPath) 644 await testImage(server.url, 'video_short1-preview.webm', video.previewPath)
645 expect(test).to.equal(true)
646 } 645 }
647 }) 646 })
648 }) 647 })
diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts
index 476a25479..8f55075fb 100644
--- a/server/tests/api/videos/single-server.ts
+++ b/server/tests/api/videos/single-server.ts
@@ -341,9 +341,7 @@ describe('Test a single server', function () {
341 341
342 for (const video of videos) { 342 for (const video of videos) {
343 const videoName = video.name.replace(' name', '') 343 const videoName = video.name.replace(' name', '')
344 const test = await testImage(server.url, videoName, video.thumbnailPath) 344 await testImage(server.url, videoName, video.thumbnailPath)
345
346 expect(test).to.equal(true)
347 } 345 }
348 }) 346 })
349 347
diff --git a/server/tests/api/videos/video-comments.ts b/server/tests/api/videos/video-comments.ts
index cf8166a96..f83d95088 100644
--- a/server/tests/api/videos/video-comments.ts
+++ b/server/tests/api/videos/video-comments.ts
@@ -83,8 +83,7 @@ describe('Test video comments', function () {
83 expect(comment.account.name).to.equal('root') 83 expect(comment.account.name).to.equal('root')
84 expect(comment.account.host).to.equal('localhost:9001') 84 expect(comment.account.host).to.equal('localhost:9001')
85 85
86 const test = await testImage(server.url, 'avatar-resized', comment.account.avatar.path, '.png') 86 await testImage(server.url, 'avatar-resized', comment.account.avatar.path, '.png')
87 expect(test).to.equal(true)
88 87
89 expect(comment.totalReplies).to.equal(0) 88 expect(comment.totalReplies).to.equal(0)
90 expect(dateIsValid(comment.createdAt as string)).to.be.true 89 expect(dateIsValid(comment.createdAt as string)).to.be.true