aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/multiple-servers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-25 16:56:13 +0200
committerChocobozzz <me@florianbigard.com>2018-04-25 16:56:13 +0200
commit170726f523ff48f89da45473fc53ca54784f43dd (patch)
treef9f783ebdfc934c6831396c2bf33f658d6640583 /server/tests/api/videos/multiple-servers.ts
parentcc918ac3f45e32f031cce7b6e0473e5c2c34b8ae (diff)
downloadPeerTube-170726f523ff48f89da45473fc53ca54784f43dd.tar.gz
PeerTube-170726f523ff48f89da45473fc53ca54784f43dd.tar.zst
PeerTube-170726f523ff48f89da45473fc53ca54784f43dd.zip
Implement video channel views
Diffstat (limited to 'server/tests/api/videos/multiple-servers.ts')
-rw-r--r--server/tests/api/videos/multiple-servers.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts
index 6238cdc08..e462a2d47 100644
--- a/server/tests/api/videos/multiple-servers.ts
+++ b/server/tests/api/videos/multiple-servers.ts
@@ -47,7 +47,6 @@ describe('Test multiple servers', function () {
47 let servers: ServerInfo[] = [] 47 let servers: ServerInfo[] = []
48 const toRemove = [] 48 const toRemove = []
49 let videoUUID = '' 49 let videoUUID = ''
50 let accountId: number
51 let videoChannelId: number 50 let videoChannelId: number
52 51
53 before(async function () { 52 before(async function () {
@@ -59,16 +58,11 @@ describe('Test multiple servers', function () {
59 await setAccessTokensToServers(servers) 58 await setAccessTokensToServers(servers)
60 59
61 { 60 {
62 const res = await getAccountsList(servers[0].url)
63 accountId = res.body.data[0].id
64 }
65
66 {
67 const videoChannel = { 61 const videoChannel = {
68 name: 'my channel', 62 name: 'my channel',
69 description: 'super channel' 63 description: 'super channel'
70 } 64 }
71 await addVideoChannel(servers[ 0 ].url, servers[ 0 ].accessToken, accountId, videoChannel) 65 await addVideoChannel(servers[ 0 ].url, servers[ 0 ].accessToken, videoChannel)
72 const channelRes = await getVideoChannelsList(servers[ 0 ].url, 0, 1) 66 const channelRes = await getVideoChannelsList(servers[ 0 ].url, 0, 1)
73 videoChannelId = channelRes.body.data[ 0 ].id 67 videoChannelId = channelRes.body.data[ 0 ].id
74 } 68 }