From 240085d0056fd97ac3c7fa8fa4ce9bc32afc4d6e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 23 Aug 2018 10:30:53 +0200 Subject: Fix tests --- server/tests/api/videos/video-nsfw.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/tests/api/videos/video-nsfw.ts') diff --git a/server/tests/api/videos/video-nsfw.ts b/server/tests/api/videos/video-nsfw.ts index 370e69d2a..891148b07 100644 --- a/server/tests/api/videos/video-nsfw.ts +++ b/server/tests/api/videos/video-nsfw.ts @@ -34,7 +34,7 @@ describe('Test video NSFW policy', function () { return getMyUserInformation(server.url, server.accessToken) .then(res => { const user: User = res.body - const videoChannelUUID = user.videoChannels[0].uuid + const videoChannelName = user.videoChannels[0].name const accountName = user.account.name + '@' + user.account.host if (token) { @@ -42,7 +42,7 @@ describe('Test video NSFW policy', function () { getVideosListWithToken(server.url, token, query), searchVideoWithToken(server.url, 'n', token, query), getAccountVideos(server.url, token, accountName, 0, 5, undefined, query), - getVideoChannelVideos(server.url, token, videoChannelUUID, 0, 5, undefined, query) + getVideoChannelVideos(server.url, token, videoChannelName, 0, 5, undefined, query) ]) } @@ -50,7 +50,7 @@ describe('Test video NSFW policy', function () { getVideosList(server.url), searchVideo(server.url, 'n'), getAccountVideos(server.url, undefined, accountName, 0, 5), - getVideoChannelVideos(server.url, undefined, videoChannelUUID, 0, 5) + getVideoChannelVideos(server.url, undefined, videoChannelName, 0, 5) ]) }) } -- cgit v1.2.3