diff options
author | Chocobozzz <me@florianbigard.com> | 2019-05-29 11:03:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-05-29 11:19:54 +0200 |
commit | 1d5342abc43df02cf0bd69b1e865c0f179182eef (patch) | |
tree | f008b43ca8189ee5856e39e5b9d4800bf37f9575 /server/tests | |
parent | e590b4a512617bbf63595b684386f68abea7d8b8 (diff) | |
download | PeerTube-1d5342abc43df02cf0bd69b1e865c0f179182eef.tar.gz PeerTube-1d5342abc43df02cf0bd69b1e865c0f179182eef.tar.zst PeerTube-1d5342abc43df02cf0bd69b1e865c0f179182eef.zip |
Multi step registration
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/check-params/users.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/tests/api/check-params/users.ts b/server/tests/api/check-params/users.ts index d26032ea5..95097817b 100644 --- a/server/tests/api/check-params/users.ts +++ b/server/tests/api/check-params/users.ts | |||
@@ -737,6 +737,13 @@ describe('Test users API validators', function () { | |||
737 | await makePostBodyRequest({ url: server.url, path: registrationPath, token: server.accessToken, fields }) | 737 | await makePostBodyRequest({ url: server.url, path: registrationPath, token: server.accessToken, fields }) |
738 | }) | 738 | }) |
739 | 739 | ||
740 | it('Should fail with a channel name that is the same than user username', async function () { | ||
741 | const source = { username: 'super_user', channel: { name: 'super_user', displayName: 'display name' } } | ||
742 | const fields = immutableAssign(baseCorrectParams, source) | ||
743 | |||
744 | await makePostBodyRequest({ url: server.url, path: registrationPath, token: server.accessToken, fields }) | ||
745 | }) | ||
746 | |||
740 | it('Should fail with an existing channel', async function () { | 747 | it('Should fail with an existing channel', async function () { |
741 | const videoChannelAttributesArg = { name: 'existing_channel', displayName: 'hello', description: 'super description' } | 748 | const videoChannelAttributesArg = { name: 'existing_channel', displayName: 'hello', description: 'super description' } |
742 | await addVideoChannel(server.url, server.accessToken, videoChannelAttributesArg) | 749 | await addVideoChannel(server.url, server.accessToken, videoChannelAttributesArg) |