diff options
Diffstat (limited to 'server/tests/misc-endpoints.ts')
-rw-r--r-- | server/tests/misc-endpoints.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/tests/misc-endpoints.ts b/server/tests/misc-endpoints.ts index 09e5afcf9..4b7b2163d 100644 --- a/server/tests/misc-endpoints.ts +++ b/server/tests/misc-endpoints.ts | |||
@@ -2,8 +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/core-utils' | ||
5 | import { | 6 | import { |
6 | addVideoChannel, | ||
7 | cleanupTests, | 7 | cleanupTests, |
8 | createUser, | 8 | createUser, |
9 | flushAndRunServer, | 9 | flushAndRunServer, |
@@ -13,7 +13,6 @@ import { | |||
13 | uploadVideo | 13 | uploadVideo |
14 | } from '../../shared/extra-utils' | 14 | } from '../../shared/extra-utils' |
15 | import { VideoPrivacy } from '../../shared/models/videos' | 15 | import { VideoPrivacy } from '../../shared/models/videos' |
16 | import { HttpStatusCode } from '@shared/core-utils' | ||
17 | 16 | ||
18 | const expect = chai.expect | 17 | const expect = chai.expect |
19 | 18 | ||
@@ -171,8 +170,8 @@ describe('Test misc endpoints', function () { | |||
171 | await uploadVideo(server.url, server.accessToken, { name: 'video 2', nsfw: false }) | 170 | await uploadVideo(server.url, server.accessToken, { name: 'video 2', nsfw: false }) |
172 | await uploadVideo(server.url, server.accessToken, { name: 'video 3', privacy: VideoPrivacy.PRIVATE }) | 171 | await uploadVideo(server.url, server.accessToken, { name: 'video 3', privacy: VideoPrivacy.PRIVATE }) |
173 | 172 | ||
174 | await addVideoChannel(server.url, server.accessToken, { name: 'channel1', displayName: 'channel 1' }) | 173 | await server.channelsCommand.create({ attributes: { name: 'channel1', displayName: 'channel 1' } }) |
175 | await addVideoChannel(server.url, server.accessToken, { name: 'channel2', displayName: 'channel 2' }) | 174 | await server.channelsCommand.create({ attributes: { name: 'channel2', displayName: 'channel 2' } }) |
176 | 175 | ||
177 | await createUser({ url: server.url, accessToken: server.accessToken, username: 'user1', password: 'password' }) | 176 | await createUser({ url: server.url, accessToken: server.accessToken, username: 'user1', password: 'password' }) |
178 | await createUser({ url: server.url, accessToken: server.accessToken, username: 'user2', password: 'password' }) | 177 | await createUser({ url: server.url, accessToken: server.accessToken, username: 'user2', password: 'password' }) |