diff options
Diffstat (limited to 'server/tests/api/videos/video-privacy.ts')
-rw-r--r-- | server/tests/api/videos/video-privacy.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/tests/api/videos/video-privacy.ts b/server/tests/api/videos/video-privacy.ts index 06011082d..b51b3bcdd 100644 --- a/server/tests/api/videos/video-privacy.ts +++ b/server/tests/api/videos/video-privacy.ts | |||
@@ -2,9 +2,8 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { HttpStatusCode } from '@shared/models' | 5 | import { cleanupTests, createSingleServer, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils' |
6 | import { cleanupTests, doubleFollow, createSingleServer, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils' | 6 | import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models' |
7 | import { VideoCreateResult, VideoPrivacy } from '@shared/models' | ||
8 | 7 | ||
9 | const expect = chai.expect | 8 | const expect = chai.expect |
10 | 9 | ||
@@ -162,7 +161,7 @@ describe('Test video privacy', function () { | |||
162 | }) | 161 | }) |
163 | 162 | ||
164 | it('Should not be able to get this unlisted video using its id', async function () { | 163 | 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.BAD_REQUEST_400 }) | 164 | await servers[1].videos.get({ id: unlistedVideo.id, expectedStatus: HttpStatusCode.NOT_FOUND_404 }) |
166 | }) | 165 | }) |
167 | 166 | ||
168 | it('Should be able to get this unlisted video using its uuid/shortUUID', async function () { | 167 | it('Should be able to get this unlisted video using its uuid/shortUUID', async function () { |