aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-23 10:30:53 +0200
committerChocobozzz <me@florianbigard.com>2018-08-27 09:41:54 +0200
commit240085d0056fd97ac3c7fa8fa4ce9bc32afc4d6e (patch)
tree99879ddce7d4b2970c263cb045c5057ed07354d4 /server/tests/api/videos
parent83e6519ba4ee752dc3148a16c69effbfccb13e6b (diff)
downloadPeerTube-240085d0056fd97ac3c7fa8fa4ce9bc32afc4d6e.tar.gz
PeerTube-240085d0056fd97ac3c7fa8fa4ce9bc32afc4d6e.tar.zst
PeerTube-240085d0056fd97ac3c7fa8fa4ce9bc32afc4d6e.zip
Fix tests
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r--server/tests/api/videos/video-nsfw.ts6
1 files changed, 3 insertions, 3 deletions
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 () {
34 return getMyUserInformation(server.url, server.accessToken) 34 return getMyUserInformation(server.url, server.accessToken)
35 .then(res => { 35 .then(res => {
36 const user: User = res.body 36 const user: User = res.body
37 const videoChannelUUID = user.videoChannels[0].uuid 37 const videoChannelName = user.videoChannels[0].name
38 const accountName = user.account.name + '@' + user.account.host 38 const accountName = user.account.name + '@' + user.account.host
39 39
40 if (token) { 40 if (token) {
@@ -42,7 +42,7 @@ describe('Test video NSFW policy', function () {
42 getVideosListWithToken(server.url, token, query), 42 getVideosListWithToken(server.url, token, query),
43 searchVideoWithToken(server.url, 'n', token, query), 43 searchVideoWithToken(server.url, 'n', token, query),
44 getAccountVideos(server.url, token, accountName, 0, 5, undefined, query), 44 getAccountVideos(server.url, token, accountName, 0, 5, undefined, query),
45 getVideoChannelVideos(server.url, token, videoChannelUUID, 0, 5, undefined, query) 45 getVideoChannelVideos(server.url, token, videoChannelName, 0, 5, undefined, query)
46 ]) 46 ])
47 } 47 }
48 48
@@ -50,7 +50,7 @@ describe('Test video NSFW policy', function () {
50 getVideosList(server.url), 50 getVideosList(server.url),
51 searchVideo(server.url, 'n'), 51 searchVideo(server.url, 'n'),
52 getAccountVideos(server.url, undefined, accountName, 0, 5), 52 getAccountVideos(server.url, undefined, accountName, 0, 5),
53 getVideoChannelVideos(server.url, undefined, videoChannelUUID, 0, 5) 53 getVideoChannelVideos(server.url, undefined, videoChannelName, 0, 5)
54 ]) 54 ])
55 }) 55 })
56 } 56 }