Add unset originallyPublishedAt test

pull/5949/head
Chocobozzz 2023-08-18 11:50:36 +02:00
parent 18987248f6
commit 18570bee99
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 15 additions and 0 deletions

View File

@ -678,6 +678,21 @@ describe('Test multiple servers', function () {
} }
}) })
it('Should be able to remove originallyPublishedAt attribute', async function () {
this.timeout(60000)
const attributes = { originallyPublishedAt: null }
await servers[2].videos.update({ id: toRemove[0].id, attributes })
await waitJobs(servers)
for (const server of servers) {
const video = await server.videos.get({ id: toRemove[0].uuid })
expect(video.originallyPublishedAt).to.not.exist
}
})
it('Should only update thumbnail and update updatedAt attribute', async function () { it('Should only update thumbnail and update updatedAt attribute', async function () {
this.timeout(30000) this.timeout(30000)