aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/misc-endpoints.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/misc-endpoints.ts
parentd23dd9fbfc4d26026352c10f81d2795ceaf2908a (diff)
downloadPeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.gz
PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.zst
PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.zip
Shorter server command names
Diffstat (limited to 'server/tests/misc-endpoints.ts')
-rw-r--r--server/tests/misc-endpoints.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/misc-endpoints.ts b/server/tests/misc-endpoints.ts
index b5b10bd5e..f7c9e6c26 100644
--- a/server/tests/misc-endpoints.ts
+++ b/server/tests/misc-endpoints.ts
@@ -158,15 +158,15 @@ describe('Test misc endpoints', function () {
158 it('Should add videos, channel and accounts and get sitemap', async function () { 158 it('Should add videos, channel and accounts and get sitemap', async function () {
159 this.timeout(35000) 159 this.timeout(35000)
160 160
161 await server.videosCommand.upload({ attributes: { name: 'video 1', nsfw: false } }) 161 await server.videos.upload({ attributes: { name: 'video 1', nsfw: false } })
162 await server.videosCommand.upload({ attributes: { name: 'video 2', nsfw: false } }) 162 await server.videos.upload({ attributes: { name: 'video 2', nsfw: false } })
163 await server.videosCommand.upload({ attributes: { name: 'video 3', privacy: VideoPrivacy.PRIVATE } }) 163 await server.videos.upload({ attributes: { name: 'video 3', privacy: VideoPrivacy.PRIVATE } })
164 164
165 await server.channelsCommand.create({ attributes: { name: 'channel1', displayName: 'channel 1' } }) 165 await server.channels.create({ attributes: { name: 'channel1', displayName: 'channel 1' } })
166 await server.channelsCommand.create({ attributes: { name: 'channel2', displayName: 'channel 2' } }) 166 await server.channels.create({ attributes: { name: 'channel2', displayName: 'channel 2' } })
167 167
168 await server.usersCommand.create({ username: 'user1', password: 'password' }) 168 await server.users.create({ username: 'user1', password: 'password' })
169 await server.usersCommand.create({ username: 'user2', password: 'password' }) 169 await server.users.create({ username: 'user2', password: 'password' })
170 170
171 const res = await makeGetRequest({ 171 const res = await makeGetRequest({
172 url: server.url, 172 url: server.url,