aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/video-imports.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/videos/video-imports.ts')
-rw-r--r--server/tests/api/videos/video-imports.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts
index efda4fc7b..8d19a4274 100644
--- a/server/tests/api/videos/video-imports.ts
+++ b/server/tests/api/videos/video-imports.ts
@@ -123,7 +123,7 @@ describe('Test video imports', function () {
123 const res = await importVideo(servers[0].url, servers[0].accessToken, attributes) 123 const res = await importVideo(servers[0].url, servers[0].accessToken, attributes)
124 expect(res.body.video.name).to.equal('small video - youtube') 124 expect(res.body.video.name).to.equal('small video - youtube')
125 expect(res.body.video.thumbnailPath).to.equal(`/static/thumbnails/${res.body.video.uuid}.jpg`) 125 expect(res.body.video.thumbnailPath).to.equal(`/static/thumbnails/${res.body.video.uuid}.jpg`)
126 expect(res.body.video.previewPath).to.equal(`/static/previews/${res.body.video.uuid}.jpg`) 126 expect(res.body.video.previewPath).to.equal(`/lazy-static/previews/${res.body.video.uuid}.jpg`)
127 await testImage(servers[0].url, 'video_import_thumbnail', res.body.video.thumbnailPath) 127 await testImage(servers[0].url, 'video_import_thumbnail', res.body.video.thumbnailPath)
128 await testImage(servers[0].url, 'video_import_preview', res.body.video.previewPath) 128 await testImage(servers[0].url, 'video_import_preview', res.body.video.previewPath)
129 129
@@ -134,7 +134,7 @@ describe('Test video imports', function () {
134 const enCaption = videoCaptions.find(caption => caption.language.id === 'en') 134 const enCaption = videoCaptions.find(caption => caption.language.id === 'en')
135 expect(enCaption).to.exist 135 expect(enCaption).to.exist
136 expect(enCaption.language.label).to.equal('English') 136 expect(enCaption.language.label).to.equal('English')
137 expect(enCaption.captionPath).to.equal(`/static/video-captions/${res.body.video.uuid}-en.vtt`) 137 expect(enCaption.captionPath).to.equal(`/lazy-static/video-captions/${res.body.video.uuid}-en.vtt`)
138 await testCaptionFile(servers[0].url, enCaption.captionPath, `WEBVTT 138 await testCaptionFile(servers[0].url, enCaption.captionPath, `WEBVTT
139Kind: captions 139Kind: captions
140Language: en 140Language: en
@@ -151,7 +151,7 @@ Adding subtitles is very easy to do`)
151 const frCaption = videoCaptions.find(caption => caption.language.id === 'fr') 151 const frCaption = videoCaptions.find(caption => caption.language.id === 'fr')
152 expect(frCaption).to.exist 152 expect(frCaption).to.exist
153 expect(frCaption.language.label).to.equal('French') 153 expect(frCaption.language.label).to.equal('French')
154 expect(frCaption.captionPath).to.equal(`/static/video-captions/${res.body.video.uuid}-fr.vtt`) 154 expect(frCaption.captionPath).to.equal(`/lazy-static/video-captions/${res.body.video.uuid}-fr.vtt`)
155 await testCaptionFile(servers[0].url, frCaption.captionPath, `WEBVTT 155 await testCaptionFile(servers[0].url, frCaption.captionPath, `WEBVTT
156Kind: captions 156Kind: captions
157Language: fr 157Language: fr