diff options
Diffstat (limited to 'server/tests/api/search')
-rw-r--r-- | server/tests/api/search/search-videos.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/server/tests/api/search/search-videos.ts b/server/tests/api/search/search-videos.ts index a0375fbf0..513538917 100644 --- a/server/tests/api/search/search-videos.ts +++ b/server/tests/api/search/search-videos.ts | |||
@@ -4,7 +4,6 @@ import 'mocha' | |||
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { | 5 | import { |
6 | cleanupTests, | 6 | cleanupTests, |
7 | createVideoCaption, | ||
8 | flushAndRunServer, | 7 | flushAndRunServer, |
9 | immutableAssign, | 8 | immutableAssign, |
10 | SearchCommand, | 9 | SearchCommand, |
@@ -54,18 +53,14 @@ describe('Test videos search', function () { | |||
54 | const videoId = res.body.video.id | 53 | const videoId = res.body.video.id |
55 | videoUUID = res.body.video.uuid | 54 | videoUUID = res.body.video.uuid |
56 | 55 | ||
57 | await createVideoCaption({ | 56 | await server.captionsCommand.createVideoCaption({ |
58 | url: server.url, | ||
59 | accessToken: server.accessToken, | ||
60 | language: 'en', | 57 | language: 'en', |
61 | videoId, | 58 | videoId, |
62 | fixture: 'subtitle-good2.vtt', | 59 | fixture: 'subtitle-good2.vtt', |
63 | mimeType: 'application/octet-stream' | 60 | mimeType: 'application/octet-stream' |
64 | }) | 61 | }) |
65 | 62 | ||
66 | await createVideoCaption({ | 63 | await server.captionsCommand.createVideoCaption({ |
67 | url: server.url, | ||
68 | accessToken: server.accessToken, | ||
69 | language: 'aa', | 64 | language: 'aa', |
70 | videoId, | 65 | videoId, |
71 | fixture: 'subtitle-good2.vtt', | 66 | fixture: 'subtitle-good2.vtt', |