aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/video-privacy.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-22 14:03:50 +0200
committerChocobozzz <me@florianbigard.com>2022-06-22 14:03:50 +0200
commit2c2befaacaa7063df0d4557b71c187ee168a8eb6 (patch)
treeed31dba97ff754d6d20f32bf7eec10e580afa121 /server/tests/api/videos/video-privacy.ts
parentff9d43f62a4f4737c5bfe955883b48c5440f323a (diff)
downloadPeerTube-2c2befaacaa7063df0d4557b71c187ee168a8eb6.tar.gz
PeerTube-2c2befaacaa7063df0d4557b71c187ee168a8eb6.tar.zst
PeerTube-2c2befaacaa7063df0d4557b71c187ee168a8eb6.zip
Fix video right check
Diffstat (limited to 'server/tests/api/videos/video-privacy.ts')
-rw-r--r--server/tests/api/videos/video-privacy.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/api/videos/video-privacy.ts b/server/tests/api/videos/video-privacy.ts
index 3051a443d..1073aee8c 100644
--- a/server/tests/api/videos/video-privacy.ts
+++ b/server/tests/api/videos/video-privacy.ts
@@ -162,7 +162,7 @@ describe('Test video privacy', function () {
162 }) 162 })
163 163
164 it('Should not be able to get this unlisted video using its id', async function () { 164 it('Should not be able to get this unlisted video using its id', async function () {
165 await servers[1].videos.get({ id: unlistedVideo.id, expectedStatus: HttpStatusCode.NOT_FOUND_404 }) 165 await servers[1].videos.get({ id: unlistedVideo.id, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 })
166 }) 166 })
167 167
168 it('Should be able to get this unlisted video using its uuid/shortUUID', async function () { 168 it('Should be able to get this unlisted video using its uuid/shortUUID', async function () {