aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/video-imports.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-imports.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-imports.ts')
-rw-r--r--server/tests/api/check-params/video-imports.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/tests/api/check-params/video-imports.ts b/server/tests/api/check-params/video-imports.ts
index d09e473de..1a6b6075f 100644
--- a/server/tests/api/check-params/video-imports.ts
+++ b/server/tests/api/check-params/video-imports.ts
@@ -36,11 +36,11 @@ describe('Test video imports API validator', function () {
36 36
37 const username = 'user1' 37 const username = 'user1'
38 const password = 'my super password' 38 const password = 'my super password'
39 await server.usersCommand.create({ username: username, password: password }) 39 await server.users.create({ username: username, password: password })
40 userAccessToken = await server.loginCommand.getAccessToken({ username, password }) 40 userAccessToken = await server.login.getAccessToken({ username, password })
41 41
42 { 42 {
43 const { videoChannels } = await server.usersCommand.getMyInfo() 43 const { videoChannels } = await server.users.getMyInfo()
44 channelId = videoChannels[0].id 44 channelId = videoChannels[0].id
45 } 45 }
46 }) 46 })
@@ -162,10 +162,10 @@ describe('Test video imports API validator', function () {
162 username: 'fake', 162 username: 'fake',
163 password: 'fake_password' 163 password: 'fake_password'
164 } 164 }
165 await server.usersCommand.create({ username: user.username, password: user.password }) 165 await server.users.create({ username: user.username, password: user.password })
166 166
167 const accessTokenUser = await server.loginCommand.getAccessToken(user) 167 const accessTokenUser = await server.login.getAccessToken(user)
168 const { videoChannels } = await server.usersCommand.getMyInfo({ token: accessTokenUser }) 168 const { videoChannels } = await server.users.getMyInfo({ token: accessTokenUser })
169 const customChannelId = videoChannels[0].id 169 const customChannelId = videoChannels[0].id
170 170
171 const fields = { ...baseCorrectParams, channelId: customChannelId } 171 const fields = { ...baseCorrectParams, channelId: customChannelId }
@@ -256,7 +256,7 @@ describe('Test video imports API validator', function () {
256 }) 256 })
257 257
258 it('Should forbid to import http videos', async function () { 258 it('Should forbid to import http videos', async function () {
259 await server.configCommand.updateCustomSubConfig({ 259 await server.config.updateCustomSubConfig({
260 newConfig: { 260 newConfig: {
261 import: { 261 import: {
262 videos: { 262 videos: {
@@ -281,7 +281,7 @@ describe('Test video imports API validator', function () {
281 }) 281 })
282 282
283 it('Should forbid to import torrent videos', async function () { 283 it('Should forbid to import torrent videos', async function () {
284 await server.configCommand.updateCustomSubConfig({ 284 await server.config.updateCustomSubConfig({
285 newConfig: { 285 newConfig: {
286 import: { 286 import: {
287 videos: { 287 videos: {