diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:04:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 89d241a79c262b9775c233b73cff080043ebb5e6 (patch) | |
tree | cb3b6cb431d25d891ef4e02f66c61d252d17048f /server/tests/api/check-params/video-channels.ts | |
parent | d23dd9fbfc4d26026352c10f81d2795ceaf2908a (diff) | |
download | PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.gz PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.zst PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.zip |
Shorter server command names
Diffstat (limited to 'server/tests/api/check-params/video-channels.ts')
-rw-r--r-- | server/tests/api/check-params/video-channels.ts | 8 |
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 () { |