channelId: videoChannel.id,
duration: parseInt(duration, 10),
createdAt: new Date(videoObject.published),
+ publishedAt: new Date(videoObject.published),
// FIXME: updatedAt does not seems to be considered by Sequelize
updatedAt: new Date(videoObject.updated),
views: videoObject.views,
await wait(10000)
// All servers should have this video
+ let publishedAt: string = null
for (const server of servers) {
const isLocal = server.url === 'http://localhost:9001'
const checkAttributes = {
host: 'localhost:9001'
},
isLocal,
+ publishedAt,
duration: 10,
tags: [ 'tag1p1', 'tag2p1' ],
privacy: VideoPrivacy.PUBLIC,
const video = videos[0]
await completeVideoCheck(server.url, video, checkAttributes)
+ publishedAt = video.publishedAt
}
})
nsfw: boolean
commentsEnabled: boolean
description: string
+ publishedAt?: string
support: string
account: {
name: string
expect(dateIsValid(video.publishedAt)).to.be.true
expect(dateIsValid(video.updatedAt)).to.be.true
+ if (attributes.publishedAt) {
+ console.log(attributes.publishedAt)
+ console.log(video.publishedAt)
+ expect(video.publishedAt).to.equal(attributes.publishedAt)
+ }
+
const res = await getVideo(url, video.uuid)
const videoDetails: VideoDetails = res.body