summaryrefslogtreecommitdiffstats
path: root/webapp/tests/client_team.test.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-09-22 08:31:38 -0400
committerGitHub <noreply@github.com>2016-09-22 08:31:38 -0400
commitefdb0dfa0b422b24a6fbed2c4752484494a78857 (patch)
treede94d8ae0f9e6c9bc91e504d93dc7f55219da52f /webapp/tests/client_team.test.jsx
parentde79343b9aa9dc601e5633cef329e1a83452aa1a (diff)
downloadchat-efdb0dfa0b422b24a6fbed2c4752484494a78857.tar.gz
chat-efdb0dfa0b422b24a6fbed2c4752484494a78857.tar.bz2
chat-efdb0dfa0b422b24a6fbed2c4752484494a78857.zip
Fixing update roles API (#4060)
Diffstat (limited to 'webapp/tests/client_team.test.jsx')
-rw-r--r--webapp/tests/client_team.test.jsx19
1 files changed, 19 insertions, 0 deletions
diff --git a/webapp/tests/client_team.test.jsx b/webapp/tests/client_team.test.jsx
index 389a6ef50..157a2f4a5 100644
--- a/webapp/tests/client_team.test.jsx
+++ b/webapp/tests/client_team.test.jsx
@@ -240,5 +240,24 @@ describe('Client.Team', function() {
);
});
});
+
+ it('updateTeamMemberRoles', function(done) {
+ TestHelper.initBasic(() => {
+ var user = TestHelper.basicUser();
+ var team = TestHelper.basicTeam();
+
+ TestHelper.basicClient().updateTeamMemberRoles(
+ team.id,
+ user.id,
+ '',
+ function() {
+ done();
+ },
+ function(err) {
+ done(new Error(err.message));
+ }
+ );
+ });
+ });
});