aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/videos/video-imports.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts
index 7482a7ceb..cf9f7d0cb 100644
--- a/server/tests/api/videos/video-imports.ts
+++ b/server/tests/api/videos/video-imports.ts
@@ -145,9 +145,9 @@ describe('Test video imports', function () {
145 145
146 const regex = `WEBVTT[ \n]+Kind: captions[ \n]+` + 146 const regex = `WEBVTT[ \n]+Kind: captions[ \n]+` +
147 `(Language: en[ \n]+)?` + 147 `(Language: en[ \n]+)?` +
148 `00:00:01.600 --> 00:00:04.200 (position:\\d+% line:\\d+%)?[ \n]+English \\(US\\)[ \n]+` + 148 `00:00:01.600 --> 00:00:04.200( position:\\d+% line:\\d+%)?[ \n]+English \\(US\\)[ \n]+` +
149 `00:00:05.900 --> 00:00:07.999 (position:\\d+% line:\\d+%)?[ \n]+This is a subtitle in American English[ \n]+` + 149 `00:00:05.900 --> 00:00:07.999( position:\\d+% line:\\d+%)?[ \n]+This is a subtitle in American English[ \n]+` +
150 `00:00:10.000 --> 00:00:14.000 (position:\\d+% line:\\d+%)?[ \n]+Adding subtitles is very easy to do` 150 `00:00:10.000 --> 00:00:14.000( position:\\d+% line:\\d+%)?[ \n]+Adding subtitles is very easy to do`
151 await testCaptionFile(servers[0].url, enCaption.captionPath, new RegExp(regex)) 151 await testCaptionFile(servers[0].url, enCaption.captionPath, new RegExp(regex))
152 } 152 }
153 153
@@ -159,9 +159,9 @@ describe('Test video imports', function () {
159 159
160 const regex = `WEBVTT[ \n]+Kind: captions[ \n]+` + 160 const regex = `WEBVTT[ \n]+Kind: captions[ \n]+` +
161 `(Language: fr[ \n]+)?` + 161 `(Language: fr[ \n]+)?` +
162 `00:00:01.600 --> 00:00:04.200 (position:\\d+% line:\\d+%)?[ \n]+Français \\(FR\\)[ \n]+` + 162 `00:00:01.600 --> 00:00:04.200( position:\\d+% line:\\d+%)?[ \n]+Français \\(FR\\)[ \n]+` +
163 `00:00:05.900 --> 00:00:07.999 (position:\\d+% line:\\d+%)?[ \n]+C'est un sous-titre français[ \n]+` + 163 `00:00:05.900 --> 00:00:07.999( position:\\d+% line:\\d+%)?[ \n]+C'est un sous-titre français[ \n]+` +
164 `00:00:10.000 --> 00:00:14.000 (position:\\d+% line:\\d+%)?[ \n]+Ajouter un sous-titre est vraiment facile` 164 `00:00:10.000 --> 00:00:14.000( position:\\d+% line:\\d+%)?[ \n]+Ajouter un sous-titre est vraiment facile`
165 165
166 await testCaptionFile(servers[0].url, frCaption.captionPath, new RegExp(regex)) 166 await testCaptionFile(servers[0].url, frCaption.captionPath, new RegExp(regex))
167 } 167 }