aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/video-captions.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-16 09:04:35 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit89d241a79c262b9775c233b73cff080043ebb5e6 (patch)
treecb3b6cb431d25d891ef4e02f66c61d252d17048f /server/tests/api/check-params/video-captions.ts
parentd23dd9fbfc4d26026352c10f81d2795ceaf2908a (diff)
downloadPeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.gz
PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.zst
PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.zip
Shorter server command names
Diffstat (limited to 'server/tests/api/check-params/video-captions.ts')
-rw-r--r--server/tests/api/check-params/video-captions.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/check-params/video-captions.ts b/server/tests/api/check-params/video-captions.ts
index f3941b3fa..913f894b9 100644
--- a/server/tests/api/check-params/video-captions.ts
+++ b/server/tests/api/check-params/video-captions.ts
@@ -30,15 +30,15 @@ describe('Test video captions API validator', function () {
30 30
31 await setAccessTokensToServers([ server ]) 31 await setAccessTokensToServers([ server ])
32 32
33 video = await server.videosCommand.upload() 33 video = await server.videos.upload()
34 34
35 { 35 {
36 const user = { 36 const user = {
37 username: 'user1', 37 username: 'user1',
38 password: 'my super password' 38 password: 'my super password'
39 } 39 }
40 await server.usersCommand.create({ username: user.username, password: user.password }) 40 await server.users.create({ username: user.username, password: user.password })
41 userAccessToken = await server.loginCommand.getAccessToken(user) 41 userAccessToken = await server.login.getAccessToken(user)
42 } 42 }
43 }) 43 })
44 44
@@ -152,7 +152,7 @@ describe('Test video captions API validator', function () {
152 // }) 152 // })
153 153
154 it('Should succeed with a valid captionfile extension and octet-stream mime type', async function () { 154 it('Should succeed with a valid captionfile extension and octet-stream mime type', async function () {
155 await server.captionsCommand.createVideoCaption({ 155 await server.captions.createVideoCaption({
156 language: 'zh', 156 language: 'zh',
157 videoId: video.uuid, 157 videoId: video.uuid,
158 fixture: 'subtitle-good.srt', 158 fixture: 'subtitle-good.srt',