aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-26 16:00:19 +0200
committerChocobozzz <me@florianbigard.com>2023-05-26 16:05:08 +0200
commitc56dd2807fe5d129907b9bf8c42656a8314d754b (patch)
treebd1b11237484bdb81d64bc29c87fcbdcb66e5ea0 /server/tests/api
parentc2eb81227b31d15c894b110d090308a9e3ac0606 (diff)
downloadPeerTube-c56dd2807fe5d129907b9bf8c42656a8314d754b.tar.gz
PeerTube-c56dd2807fe5d129907b9bf8c42656a8314d754b.tar.zst
PeerTube-c56dd2807fe5d129907b9bf8c42656a8314d754b.zip
Fix peertube subtitles import
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/videos/video-imports.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts
index 878452ed2..192b2aeb9 100644
--- a/server/tests/api/videos/video-imports.ts
+++ b/server/tests/api/videos/video-imports.ts
@@ -449,6 +449,16 @@ describe('Test video imports', function () {
449 const video = await server.videos.get({ id: videoUUID }) 449 const video = await server.videos.get({ id: videoUUID })
450 450
451 expect(video.name).to.equal('E2E tests') 451 expect(video.name).to.equal('E2E tests')
452
453 const { data: captions } = await server.captions.list({ videoId: videoUUID })
454 expect(captions).to.have.lengthOf(1)
455 expect(captions[0].language.id).to.equal('fr')
456
457 const str = `WEBVTT FILE\r?\n\r?\n` +
458 `1\r?\n` +
459 `00:00:04.000 --> 00:00:09.000\r?\n` +
460 `January 1, 1994. The North American`
461 await testCaptionFile(server.url, captions[0].captionPath, new RegExp(str))
452 } 462 }
453 } 463 }
454 }) 464 })