Fix chapters tests

pull/6069/head
Chocobozzz 2023-11-29 15:01:46 +01:00
parent f9e710e7d4
commit f51bafb3fa
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -178,13 +178,13 @@ describe('Test video chapters', function () {
checkChapters(chapters)
}
await servers[0].videos.update({ id: video.uuid, attributes: { description: '00:01 chapter 1' } })
await servers[0].videos.update({ id: video.uuid, attributes: { description: '00:01 chapter 1\n00:03 chapter 2' } })
await waitJobs(servers)
for (const server of servers) {
const { chapters } = await server.chapters.list({ videoId: video.uuid })
expect(chapters).to.deep.equal([ { timecode: 1, title: 'chapter 1' } ])
expect(chapters).to.deep.equal([ { timecode: 1, title: 'chapter 1' }, { timecode: 3, title: 'chapter 2' } ])
}
await servers[0].videos.update({ id: video.uuid, attributes: { description: 'null description' } })