diff options
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r-- | server/tests/api/videos/multiple-servers.ts | 3 | ||||
-rw-r--r-- | server/tests/api/videos/single-server.ts | 4 | ||||
-rw-r--r-- | server/tests/api/videos/video-comments.ts | 3 |
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 |