Skip to content

Commit

Permalink
Fix chapters tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Nov 29, 2023
1 parent f9e710e commit f51bafb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tests/src/api/videos/video-chapters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' } })
Expand Down

0 comments on commit f51bafb

Please sign in to comment.