diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-04 18:32:38 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-04 18:32:38 +0100 |
commit | 563d032e97cc62de50281e6413a8a03ed37a3d3b (patch) | |
tree | 43f09cc746f8b3b92d9d7b078ae93d2af7c3b032 /server/tests/api/check-params | |
parent | f73544839586d5e50529617f3649a84ac9e0ab86 (diff) | |
download | PeerTube-563d032e97cc62de50281e6413a8a03ed37a3d3b.tar.gz PeerTube-563d032e97cc62de50281e6413a8a03ed37a3d3b.tar.zst PeerTube-563d032e97cc62de50281e6413a8a03ed37a3d3b.zip |
Usernames are case insensitive now
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r-- | server/tests/api/check-params/users.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/tests/api/check-params/users.ts b/server/tests/api/check-params/users.ts index 687999c09..578fece49 100644 --- a/server/tests/api/check-params/users.ts +++ b/server/tests/api/check-params/users.ts | |||
@@ -112,6 +112,18 @@ describe('Test users API validators', function () { | |||
112 | await makePostBodyRequest({ url: server.url, path, token: server.accessToken, fields }) | 112 | await makePostBodyRequest({ url: server.url, path, token: server.accessToken, fields }) |
113 | }) | 113 | }) |
114 | 114 | ||
115 | it('Should fail with a not lowercase username', async function () { | ||
116 | const fields = { | ||
117 | username: 'Toto', | ||
118 | email: 'test@example.com', | ||
119 | password: 'my_super_password', | ||
120 | videoQuota: 42000000, | ||
121 | role: UserRole.USER | ||
122 | } | ||
123 | |||
124 | await makePostBodyRequest({ url: server.url, path, token: server.accessToken, fields }) | ||
125 | }) | ||
126 | |||
115 | it('Should fail with an incorrect username', async function () { | 127 | it('Should fail with an incorrect username', async function () { |
116 | const fields = { | 128 | const fields = { |
117 | username: 'my username', | 129 | username: 'my username', |