aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/misc-endpoints.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/misc-endpoints.ts')
-rw-r--r--server/tests/misc-endpoints.ts7
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
3import 'mocha' 3import 'mocha'
4import * as chai from 'chai' 4import * as chai from 'chai'
5import { HttpStatusCode } from '@shared/core-utils'
5import { 6import {
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'
15import { VideoPrivacy } from '../../shared/models/videos' 15import { VideoPrivacy } from '../../shared/models/videos'
16import { HttpStatusCode } from '@shared/core-utils'
17 16
18const expect = chai.expect 17const 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' })