From ad9e39fb815d85e5e718c40540fa75471474fa17 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 25 May 2018 09:57:16 +0200 Subject: Only use account name in routes --- server/tests/api/check-params/videos.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/tests/api/check-params/videos.ts') diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts index c81e9752e..7b40b91e7 100644 --- a/server/tests/api/check-params/videos.ts +++ b/server/tests/api/check-params/videos.ts @@ -18,7 +18,7 @@ describe('Test videos API validator', function () { const path = '/api/v1/videos/' let server: ServerInfo let userAccessToken = '' - let accountUUID: string + let accountName: string let channelId: number let channelUUID: string let videoId @@ -43,7 +43,7 @@ describe('Test videos API validator', function () { const res = await getMyUserInformation(server.url, server.accessToken) channelId = res.body.videoChannels[ 0 ].id channelUUID = res.body.videoChannels[ 0 ].uuid - accountUUID = res.body.account.uuid + accountName = res.body.account.name + '@' + res.body.account.host } }) @@ -116,7 +116,7 @@ describe('Test videos API validator', function () { let path: string before(async function () { - path = '/api/v1/accounts/' + accountUUID + '/videos' + path = '/api/v1/accounts/' + accountName + '/videos' }) it('Should fail with a bad start pagination', async function () { -- cgit v1.2.3