aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/users/users.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/users/users.ts')
-rw-r--r--server/tests/api/users/users.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/tests/api/users/users.ts b/server/tests/api/users/users.ts
index 403d1a089..6fc2a070f 100644
--- a/server/tests/api/users/users.ts
+++ b/server/tests/api/users/users.ts
@@ -116,6 +116,17 @@ describe('Test users', function () {
116 116
117 accessToken = res.body.access_token 117 accessToken = res.body.access_token
118 }) 118 })
119
120 it('Should be able to login with an insensitive username', async function () {
121 const user = { username: 'RoOt', password: server.user.password }
122 const res = await login(server.url, server.client, user, 200)
123
124 const user2 = { username: 'rOoT', password: server.user.password }
125 const res2 = await login(server.url, server.client, user2, 200)
126
127 const user3 = { username: 'ROOt', password: server.user.password }
128 const res3 = await login(server.url, server.client, user3, 200)
129 })
119 }) 130 })
120 131
121 describe('Upload', function () { 132 describe('Upload', function () {