From efdb0dfa0b422b24a6fbed2c4752484494a78857 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Thu, 22 Sep 2016 08:31:38 -0400
Subject: Fixing update roles API (#4060)

---
 webapp/tests/client_user.test.jsx | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

(limited to 'webapp/tests/client_user.test.jsx')

diff --git a/webapp/tests/client_user.test.jsx b/webapp/tests/client_user.test.jsx
index 6c65e8ef5..48a0150d4 100644
--- a/webapp/tests/client_user.test.jsx
+++ b/webapp/tests/client_user.test.jsx
@@ -211,21 +211,18 @@ describe('Client.User', function() {
         });
     });
 
-    it('updateRoles', function(done) {
+    it('updateUserRoles', function(done) {
         TestHelper.initBasic(() => {
             var user = TestHelper.basicUser();
-            var team = TestHelper.basicTeam();
 
-            TestHelper.basicClient().updateRoles(
-                team.id,
+            TestHelper.basicClient().updateUserRoles(
                 user.id,
                 '',
-                function(data) {
-                    assert.equal(data.user_id, user.id);
-                    done();
+                function() {
+                    done(new Error('Not supposed to work'));
                 },
-                function(err) {
-                    done(new Error(err.message));
+                function() {
+                    done();
                 }
             );
         });
-- 
cgit v1.2.3-1-g7c22

