diff options
Diffstat (limited to 'server/tests/api/videos/videos-filter.ts')
-rw-r--r-- | server/tests/api/videos/videos-filter.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/videos/videos-filter.ts b/server/tests/api/videos/videos-filter.ts index db9150655..88dff3e7f 100644 --- a/server/tests/api/videos/videos-filter.ts +++ b/server/tests/api/videos/videos-filter.ts | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import { expect } from 'chai' | 4 | import { expect } from 'chai' |
5 | import { HttpStatusCode } from '@shared/core-utils' | 5 | import { HttpStatusCode } from '@shared/models' |
6 | import { | 6 | import { |
7 | cleanupTests, | 7 | cleanupTests, |
8 | doubleFollow, | 8 | doubleFollow, |
@@ -13,7 +13,7 @@ import { | |||
13 | } from '@shared/extra-utils' | 13 | } from '@shared/extra-utils' |
14 | import { UserRole, Video, VideoPrivacy } from '@shared/models' | 14 | import { UserRole, Video, VideoPrivacy } from '@shared/models' |
15 | 15 | ||
16 | async function getVideosNames (server: PeerTubeServer, token: string, filter: string, statusCodeExpected = HttpStatusCode.OK_200) { | 16 | async function getVideosNames (server: PeerTubeServer, token: string, filter: string, expectedStatus = HttpStatusCode.OK_200) { |
17 | const paths = [ | 17 | const paths = [ |
18 | '/api/v1/video-channels/root_channel/videos', | 18 | '/api/v1/video-channels/root_channel/videos', |
19 | '/api/v1/accounts/root/videos', | 19 | '/api/v1/accounts/root/videos', |
@@ -32,7 +32,7 @@ async function getVideosNames (server: PeerTubeServer, token: string, filter: st | |||
32 | sort: 'createdAt', | 32 | sort: 'createdAt', |
33 | filter | 33 | filter |
34 | }, | 34 | }, |
35 | statusCodeExpected | 35 | expectedStatus |
36 | }) | 36 | }) |
37 | 37 | ||
38 | videosResults.push(res.body.data.map(v => v.name)) | 38 | videosResults.push(res.body.data.map(v => v.name)) |