aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-28 18:50:44 +0200
committerChocobozzz <me@florianbigard.com>2018-05-28 18:50:44 +0200
commit53a613171e5d3e2d31c04d85ed883dd9a37cf1fb (patch)
tree7fbe33128110ccbe0f9c49c47ea2df394657f8a0 /server/tests/utils
parent1ab6d6bb6b78e4cd7079884fbf99aa89717dab26 (diff)
downloadPeerTube-53a613171e5d3e2d31c04d85ed883dd9a37cf1fb.tar.gz
PeerTube-53a613171e5d3e2d31c04d85ed883dd9a37cf1fb.tar.zst
PeerTube-53a613171e5d3e2d31c04d85ed883dd9a37cf1fb.zip
Fix publishedAt value after following a new instance
Diffstat (limited to 'server/tests/utils')
-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