From 675a8fc74faefa0161b0754bd61c710de7a449c5 Mon Sep 17 00:00:00 2001
From: Chocobozzz <me@florianbigard.com>
Date: Tue, 11 Jun 2019 16:13:50 +0200
Subject: [PATCH] Fix user tests

---
 server/tests/api/users/users.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/tests/api/users/users.ts b/server/tests/api/users/users.ts
index b1f214fe2..403d1a089 100644
--- a/server/tests/api/users/users.ts
+++ b/server/tests/api/users/users.ts
@@ -468,10 +468,11 @@ describe('Test users', function () {
       expect(user.autoPlayVideo).to.be.false
     })
 
-    it('Should be able to change the email display attribute', async function () {
+    it('Should be able to change the email attribute', async function () {
       await updateMyUser({
         url: server.url,
         accessToken: accessTokenUser,
+        currentPassword: 'new password',
         email: 'updated@example.com'
       })