aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/video-channels.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/video-channels.ts')
-rw-r--r--server/tests/api/check-params/video-channels.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/check-params/video-channels.ts b/server/tests/api/check-params/video-channels.ts
index 2b4c17ea1..8e6e32f20 100644
--- a/server/tests/api/check-params/video-channels.ts
+++ b/server/tests/api/check-params/video-channels.ts
@@ -44,11 +44,11 @@ describe('Test video channels API validator', function () {
44 } 44 }
45 45
46 { 46 {
47 await server.usersCommand.create({ username: user.username, password: user.password }) 47 await server.users.create({ username: user.username, password: user.password })
48 accessTokenUser = await server.loginCommand.getAccessToken(user) 48 accessTokenUser = await server.login.getAccessToken(user)
49 } 49 }
50 50
51 command = server.channelsCommand 51 command = server.channels
52 }) 52 })
53 53
54 describe('When listing a video channels', function () { 54 describe('When listing a video channels', function () {
@@ -81,7 +81,7 @@ describe('Test video channels API validator', function () {
81 }) 81 })
82 82
83 it('Should fail with a unknown account', async function () { 83 it('Should fail with a unknown account', async function () {
84 await server.channelsCommand.listByAccount({ accountName: 'unknown', expectedStatus: HttpStatusCode.NOT_FOUND_404 }) 84 await server.channels.listByAccount({ accountName: 'unknown', expectedStatus: HttpStatusCode.NOT_FOUND_404 })
85 }) 85 })
86 86
87 it('Should succeed with the correct parameters', async function () { 87 it('Should succeed with the correct parameters', async function () {