aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/search
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-08 11:49:38 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commita2470c9f4bfc7f49f4b94de935bacdd53fd54f29 (patch)
treecb6b6b33d1a404fe31547c004241a7eb9743b64e /server/tests/api/search
parente3d15a6a9aed97a004d9dac1b7a6499d794e080a (diff)
downloadPeerTube-a2470c9f4bfc7f49f4b94de935bacdd53fd54f29.tar.gz
PeerTube-a2470c9f4bfc7f49f4b94de935bacdd53fd54f29.tar.zst
PeerTube-a2470c9f4bfc7f49f4b94de935bacdd53fd54f29.zip
Introduce captions command
Diffstat (limited to 'server/tests/api/search')
-rw-r--r--server/tests/api/search/search-videos.ts9
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'
4import * as chai from 'chai' 4import * as chai from 'chai'
5import { 5import {
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',