diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-26 15:22:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-26 15:22:26 +0200 |
commit | 25ae21107c6b1fbb99773f11b88b877162f41afe (patch) | |
tree | 4b0394ad8f37287148df2efc858096fbca8c533b /server/tests/api/videos | |
parent | 20dcfd74982f4ec8a143696abed02b059d30d9ec (diff) | |
download | PeerTube-25ae21107c6b1fbb99773f11b88b877162f41afe.tar.gz PeerTube-25ae21107c6b1fbb99773f11b88b877162f41afe.tar.zst PeerTube-25ae21107c6b1fbb99773f11b88b877162f41afe.zip |
Fix tests
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r-- | server/tests/api/videos/video-imports.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
139 | Kind: captions | 139 | Kind: captions |
140 | Language: en | 140 | Language: 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 |
156 | Kind: captions | 156 | Kind: captions |
157 | Language: fr | 157 | Language: fr |