aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/video-captions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/videos/video-captions.ts')
-rw-r--r--server/tests/api/videos/video-captions.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/api/videos/video-captions.ts b/server/tests/api/videos/video-captions.ts
index b4ecb39f4..00e04d69d 100644
--- a/server/tests/api/videos/video-captions.ts
+++ b/server/tests/api/videos/video-captions.ts
@@ -83,13 +83,13 @@ describe('Test video captions', function () {
83 const caption1: VideoCaption = res.body.data[0] 83 const caption1: VideoCaption = res.body.data[0]
84 expect(caption1.language.id).to.equal('ar') 84 expect(caption1.language.id).to.equal('ar')
85 expect(caption1.language.label).to.equal('Arabic') 85 expect(caption1.language.label).to.equal('Arabic')
86 expect(caption1.captionPath).to.equal('/static/video-captions/' + videoUUID + '-ar.vtt') 86 expect(caption1.captionPath).to.equal('/lazy-static/video-captions/' + videoUUID + '-ar.vtt')
87 await testCaptionFile(server.url, caption1.captionPath, 'Subtitle good 1.') 87 await testCaptionFile(server.url, caption1.captionPath, 'Subtitle good 1.')
88 88
89 const caption2: VideoCaption = res.body.data[1] 89 const caption2: VideoCaption = res.body.data[1]
90 expect(caption2.language.id).to.equal('zh') 90 expect(caption2.language.id).to.equal('zh')
91 expect(caption2.language.label).to.equal('Chinese') 91 expect(caption2.language.label).to.equal('Chinese')
92 expect(caption2.captionPath).to.equal('/static/video-captions/' + videoUUID + '-zh.vtt') 92 expect(caption2.captionPath).to.equal('/lazy-static/video-captions/' + videoUUID + '-zh.vtt')
93 await testCaptionFile(server.url, caption2.captionPath, 'Subtitle good 2.') 93 await testCaptionFile(server.url, caption2.captionPath, 'Subtitle good 2.')
94 } 94 }
95 }) 95 })
@@ -117,7 +117,7 @@ describe('Test video captions', function () {
117 const caption1: VideoCaption = res.body.data[0] 117 const caption1: VideoCaption = res.body.data[0]
118 expect(caption1.language.id).to.equal('ar') 118 expect(caption1.language.id).to.equal('ar')
119 expect(caption1.language.label).to.equal('Arabic') 119 expect(caption1.language.label).to.equal('Arabic')
120 expect(caption1.captionPath).to.equal('/static/video-captions/' + videoUUID + '-ar.vtt') 120 expect(caption1.captionPath).to.equal('/lazy-static/video-captions/' + videoUUID + '-ar.vtt')
121 await testCaptionFile(server.url, caption1.captionPath, 'Subtitle good 2.') 121 await testCaptionFile(server.url, caption1.captionPath, 'Subtitle good 2.')
122 } 122 }
123 }) 123 })
@@ -148,7 +148,7 @@ describe('Test video captions', function () {
148 const caption1: VideoCaption = res.body.data[0] 148 const caption1: VideoCaption = res.body.data[0]
149 expect(caption1.language.id).to.equal('ar') 149 expect(caption1.language.id).to.equal('ar')
150 expect(caption1.language.label).to.equal('Arabic') 150 expect(caption1.language.label).to.equal('Arabic')
151 expect(caption1.captionPath).to.equal('/static/video-captions/' + videoUUID + '-ar.vtt') 151 expect(caption1.captionPath).to.equal('/lazy-static/video-captions/' + videoUUID + '-ar.vtt')
152 152
153 const expected = 'WEBVTT FILE\r\n' + 153 const expected = 'WEBVTT FILE\r\n' +
154 '\r\n' + 154 '\r\n' +
@@ -185,7 +185,7 @@ describe('Test video captions', function () {
185 185
186 expect(caption.language.id).to.equal('zh') 186 expect(caption.language.id).to.equal('zh')
187 expect(caption.language.label).to.equal('Chinese') 187 expect(caption.language.label).to.equal('Chinese')
188 expect(caption.captionPath).to.equal('/static/video-captions/' + videoUUID + '-zh.vtt') 188 expect(caption.captionPath).to.equal('/lazy-static/video-captions/' + videoUUID + '-zh.vtt')
189 await testCaptionFile(server.url, caption.captionPath, 'Subtitle good 2.') 189 await testCaptionFile(server.url, caption.captionPath, 'Subtitle good 2.')
190 } 190 }
191 }) 191 })