aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/videos/videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils/videos/videos.ts')
-rw-r--r--server/tests/utils/videos/videos.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts
index 46fa5f79d..746b5ca6b 100644
--- a/server/tests/utils/videos/videos.ts
+++ b/server/tests/utils/videos/videos.ts
@@ -447,6 +447,7 @@ async function completeVideoCheck (
447 nsfw: boolean 447 nsfw: boolean
448 commentsEnabled: boolean 448 commentsEnabled: boolean
449 description: string 449 description: string
450 publishedAt?: string
450 support: string 451 support: string
451 account: { 452 account: {
452 name: string 453 name: string
@@ -500,6 +501,12 @@ async function completeVideoCheck (
500 expect(dateIsValid(video.publishedAt)).to.be.true 501 expect(dateIsValid(video.publishedAt)).to.be.true
501 expect(dateIsValid(video.updatedAt)).to.be.true 502 expect(dateIsValid(video.updatedAt)).to.be.true
502 503
504 if (attributes.publishedAt) {
505 console.log(attributes.publishedAt)
506 console.log(video.publishedAt)
507 expect(video.publishedAt).to.equal(attributes.publishedAt)
508 }
509
503 const res = await getVideo(url, video.uuid) 510 const res = await getVideo(url, video.uuid)
504 const videoDetails: VideoDetails = res.body 511 const videoDetails: VideoDetails = res.body
505 512