diff options
Diffstat (limited to 'server/tests/api/videos/videos-filter.ts')
-rw-r--r-- | server/tests/api/videos/videos-filter.ts | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/server/tests/api/videos/videos-filter.ts b/server/tests/api/videos/videos-filter.ts index 7428b82c5..519dad646 100644 --- a/server/tests/api/videos/videos-filter.ts +++ b/server/tests/api/videos/videos-filter.ts | |||
@@ -1,7 +1,8 @@ | |||
1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ | 1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ |
2 | 2 | ||
3 | import * as chai from 'chai' | ||
4 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | ||
5 | import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' | ||
5 | import { | 6 | import { |
6 | cleanupTests, | 7 | cleanupTests, |
7 | createUser, | 8 | createUser, |
@@ -10,12 +11,10 @@ import { | |||
10 | makeGetRequest, | 11 | makeGetRequest, |
11 | ServerInfo, | 12 | ServerInfo, |
12 | setAccessTokensToServers, | 13 | setAccessTokensToServers, |
13 | uploadVideo, | 14 | uploadVideo |
14 | userLogin | ||
15 | } from '../../../../shared/extra-utils' | 15 | } from '../../../../shared/extra-utils' |
16 | import { Video, VideoPrivacy } from '../../../../shared/models/videos' | ||
17 | import { UserRole } from '../../../../shared/models/users' | 16 | import { UserRole } from '../../../../shared/models/users' |
18 | import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' | 17 | import { Video, VideoPrivacy } from '../../../../shared/models/videos' |
19 | 18 | ||
20 | const expect = chai.expect | 19 | const expect = chai.expect |
21 | 20 | ||
@@ -72,7 +71,7 @@ describe('Test videos filter', function () { | |||
72 | role: UserRole.MODERATOR | 71 | role: UserRole.MODERATOR |
73 | } | 72 | } |
74 | ) | 73 | ) |
75 | server['moderatorAccessToken'] = await userLogin(server, moderator) | 74 | server['moderatorAccessToken'] = await server.loginCommand.getAccessToken(moderator) |
76 | 75 | ||
77 | await uploadVideo(server.url, server.accessToken, { name: 'public ' + server.serverNumber }) | 76 | await uploadVideo(server.url, server.accessToken, { name: 'public ' + server.serverNumber }) |
78 | 77 | ||