aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-26 15:22:26 +0200
committerChocobozzz <me@florianbigard.com>2020-08-26 15:22:26 +0200
commit25ae21107c6b1fbb99773f11b88b877162f41afe (patch)
tree4b0394ad8f37287148df2efc858096fbca8c533b /server/tests/api
parent20dcfd74982f4ec8a143696abed02b059d30d9ec (diff)
downloadPeerTube-25ae21107c6b1fbb99773f11b88b877162f41afe.tar.gz
PeerTube-25ae21107c6b1fbb99773f11b88b877162f41afe.tar.zst
PeerTube-25ae21107c6b1fbb99773f11b88b877162f41afe.zip
Fix tests
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/server/follows.ts2
-rw-r--r--server/tests/api/videos/video-imports.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts
index 1ae1adb2d..9233a210b 100644
--- a/server/tests/api/server/follows.ts
+++ b/server/tests/api/server/follows.ts
@@ -558,7 +558,7 @@ describe('Test follows', function () {
558 const caption1: VideoCaption = res.body.data[0] 558 const caption1: VideoCaption = res.body.data[0]
559 expect(caption1.language.id).to.equal('ar') 559 expect(caption1.language.id).to.equal('ar')
560 expect(caption1.language.label).to.equal('Arabic') 560 expect(caption1.language.label).to.equal('Arabic')
561 expect(caption1.captionPath).to.equal('/static/video-captions/' + video4.uuid + '-ar.vtt') 561 expect(caption1.captionPath).to.equal('/lazy-static/video-captions/' + video4.uuid + '-ar.vtt')
562 await testCaptionFile(servers[0].url, caption1.captionPath, 'Subtitle good 2.') 562 await testCaptionFile(servers[0].url, caption1.captionPath, 'Subtitle good 2.')
563 }) 563 })
564 564
diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts
index adb97aba4..8d19a4274 100644
--- a/server/tests/api/videos/video-imports.ts
+++ b/server/tests/api/videos/video-imports.ts
@@ -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