From 89d241a79c262b9775c233b73cff080043ebb5e6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Jul 2021 09:04:35 +0200 Subject: Shorter server command names --- server/tests/misc-endpoints.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'server/tests/misc-endpoints.ts') 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 () { it('Should add videos, channel and accounts and get sitemap', async function () { this.timeout(35000) - await server.videosCommand.upload({ attributes: { name: 'video 1', nsfw: false } }) - await server.videosCommand.upload({ attributes: { name: 'video 2', nsfw: false } }) - await server.videosCommand.upload({ attributes: { name: 'video 3', privacy: VideoPrivacy.PRIVATE } }) + await server.videos.upload({ attributes: { name: 'video 1', nsfw: false } }) + await server.videos.upload({ attributes: { name: 'video 2', nsfw: false } }) + await server.videos.upload({ attributes: { name: 'video 3', privacy: VideoPrivacy.PRIVATE } }) - await server.channelsCommand.create({ attributes: { name: 'channel1', displayName: 'channel 1' } }) - await server.channelsCommand.create({ attributes: { name: 'channel2', displayName: 'channel 2' } }) + await server.channels.create({ attributes: { name: 'channel1', displayName: 'channel 1' } }) + await server.channels.create({ attributes: { name: 'channel2', displayName: 'channel 2' } }) - await server.usersCommand.create({ username: 'user1', password: 'password' }) - await server.usersCommand.create({ username: 'user2', password: 'password' }) + await server.users.create({ username: 'user1', password: 'password' }) + await server.users.create({ username: 'user2', password: 'password' }) const res = await makeGetRequest({ url: server.url, -- cgit v1.2.3