aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-04 10:21:36 +0200
committerChocobozzz <me@florianbigard.com>2018-04-04 10:21:36 +0200
commitc49db162ee3ad0acf89f4e71ac0083b30ab798ea (patch)
tree9ab877ac92cc4c341792b932b29f6c05ade668bc /server/tests/utils
parent20760d9160e09bb4efaddffb331395f8d6c3c59d (diff)
downloadPeerTube-c49db162ee3ad0acf89f4e71ac0083b30ab798ea.tar.gz
PeerTube-c49db162ee3ad0acf89f4e71ac0083b30ab798ea.tar.zst
PeerTube-c49db162ee3ad0acf89f4e71ac0083b30ab798ea.zip
Add tests for publishedAt
Diffstat (limited to 'server/tests/utils')
-rw-r--r--server/tests/utils/videos/videos.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts
index 9bda53371..01e7fa5a1 100644
--- a/server/tests/utils/videos/videos.ts
+++ b/server/tests/utils/videos/videos.ts
@@ -427,6 +427,7 @@ async function completeVideoCheck (
427 expect(video.isLocal).to.equal(attributes.isLocal) 427 expect(video.isLocal).to.equal(attributes.isLocal)
428 expect(video.duration).to.equal(attributes.duration) 428 expect(video.duration).to.equal(attributes.duration)
429 expect(dateIsValid(video.createdAt)).to.be.true 429 expect(dateIsValid(video.createdAt)).to.be.true
430 expect(dateIsValid(video.publishedAt)).to.be.true
430 expect(dateIsValid(video.updatedAt)).to.be.true 431 expect(dateIsValid(video.updatedAt)).to.be.true
431 432
432 const res = await getVideo(url, video.uuid) 433 const res = await getVideo(url, video.uuid)