diff options
Diffstat (limited to 'server/tests/api/videos/video-comments.ts')
-rw-r--r-- | server/tests/api/videos/video-comments.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/videos/video-comments.ts b/server/tests/api/videos/video-comments.ts index 348b408e8..dc47f8a4a 100644 --- a/server/tests/api/videos/video-comments.ts +++ b/server/tests/api/videos/video-comments.ts | |||
@@ -63,8 +63,8 @@ describe('Test video comments', function () { | |||
63 | expect(comment.videoId).to.equal(videoId) | 63 | expect(comment.videoId).to.equal(videoId) |
64 | expect(comment.id).to.equal(comment.threadId) | 64 | expect(comment.id).to.equal(comment.threadId) |
65 | expect(comment.account.name).to.equal('root') | 65 | expect(comment.account.name).to.equal('root') |
66 | expect(comment.account.host).to.equal('localhost:' + server.port) | 66 | expect(comment.account.host).to.equal(server.host) |
67 | expect(comment.account.url).to.equal('http://localhost:' + server.port + '/accounts/root') | 67 | expect(comment.account.url).to.equal(server.url + '/accounts/root') |
68 | expect(comment.totalReplies).to.equal(0) | 68 | expect(comment.totalReplies).to.equal(0) |
69 | expect(comment.totalRepliesFromVideoAuthor).to.equal(0) | 69 | expect(comment.totalRepliesFromVideoAuthor).to.equal(0) |
70 | expect(dateIsValid(comment.createdAt as string)).to.be.true | 70 | expect(dateIsValid(comment.createdAt as string)).to.be.true |
@@ -85,7 +85,7 @@ describe('Test video comments', function () { | |||
85 | expect(comment.videoId).to.equal(videoId) | 85 | expect(comment.videoId).to.equal(videoId) |
86 | expect(comment.id).to.equal(comment.threadId) | 86 | expect(comment.id).to.equal(comment.threadId) |
87 | expect(comment.account.name).to.equal('root') | 87 | expect(comment.account.name).to.equal('root') |
88 | expect(comment.account.host).to.equal('localhost:' + server.port) | 88 | expect(comment.account.host).to.equal(server.host) |
89 | 89 | ||
90 | for (const avatar of comment.account.avatars) { | 90 | for (const avatar of comment.account.avatars) { |
91 | await testImage(server.url, `avatar-resized-${avatar.width}x${avatar.width}`, avatar.path, '.png') | 91 | await testImage(server.url, `avatar-resized-${avatar.width}x${avatar.width}`, avatar.path, '.png') |