diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-20 08:33:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-20 08:33:49 +0200 |
commit | 6b3aa06804e12dc01c1f31fe2d03ae4b8cb01cd1 (patch) | |
tree | a75d3061a584b9d65d029465469536cbbc82bbfc | |
parent | 8d57e728756fe4de70d720775675e961fc3f30d3 (diff) | |
download | PeerTube-6b3aa06804e12dc01c1f31fe2d03ae4b8cb01cd1.tar.gz PeerTube-6b3aa06804e12dc01c1f31fe2d03ae4b8cb01cd1.tar.zst PeerTube-6b3aa06804e12dc01c1f31fe2d03ae4b8cb01cd1.zip |
Correctly fix import tests
-rw-r--r-- | server/tests/api/videos/video-imports.ts | 12 |
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 | } |