diff options
Diffstat (limited to 'server/tests/api/check-params/users.ts')
-rw-r--r-- | server/tests/api/check-params/users.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/api/check-params/users.ts b/server/tests/api/check-params/users.ts index da0f55bf8..88fc8e8b1 100644 --- a/server/tests/api/check-params/users.ts +++ b/server/tests/api/check-params/users.ts | |||
@@ -5,7 +5,6 @@ import { omit } from 'lodash' | |||
5 | import { User, UserRole, VideoCreateResult } from '../../../../shared' | 5 | import { User, UserRole, VideoCreateResult } from '../../../../shared' |
6 | import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' | 6 | import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' |
7 | import { | 7 | import { |
8 | addVideoChannel, | ||
9 | blockUser, | 8 | blockUser, |
10 | buildAbsoluteFixturePath, | 9 | buildAbsoluteFixturePath, |
11 | cleanupTests, | 10 | cleanupTests, |
@@ -1041,8 +1040,8 @@ describe('Test users API validators', function () { | |||
1041 | }) | 1040 | }) |
1042 | 1041 | ||
1043 | it('Should fail with an existing channel', async function () { | 1042 | it('Should fail with an existing channel', async function () { |
1044 | const videoChannelAttributesArg = { name: 'existing_channel', displayName: 'hello', description: 'super description' } | 1043 | const attributes = { name: 'existing_channel', displayName: 'hello', description: 'super description' } |
1045 | await addVideoChannel(server.url, server.accessToken, videoChannelAttributesArg) | 1044 | await server.channelsCommand.create({ attributes }) |
1046 | 1045 | ||
1047 | const fields = immutableAssign(baseCorrectParams, { channel: { name: 'existing_channel', displayName: 'toto' } }) | 1046 | const fields = immutableAssign(baseCorrectParams, { channel: { name: 'existing_channel', displayName: 'toto' } }) |
1048 | 1047 | ||