aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/misc-endpoints.ts
diff options
context:
space:
mode:
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,