summaryrefslogtreecommitdiffstats
path: root/webapp/tests/client_user.test.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-09-14 08:57:33 -0400
committerenahum <nahumhbl@gmail.com>2016-09-14 09:57:33 -0300
commit837808eba389f1f74da8200b35d1fdc7ea14900e (patch)
tree69742d74ccd39ad7313bb382e94462699c4ff790 /webapp/tests/client_user.test.jsx
parentabe6e8e47114c8757f064bba072ef71541b3ed7d (diff)
downloadchat-837808eba389f1f74da8200b35d1fdc7ea14900e.tar.gz
chat-837808eba389f1f74da8200b35d1fdc7ea14900e.tar.bz2
chat-837808eba389f1f74da8200b35d1fdc7ea14900e.zip
Update getUser API and add it to the JS driver (#4020)
Diffstat (limited to 'webapp/tests/client_user.test.jsx')
-rw-r--r--webapp/tests/client_user.test.jsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/webapp/tests/client_user.test.jsx b/webapp/tests/client_user.test.jsx
index 116eee4ae..6c65e8ef5 100644
--- a/webapp/tests/client_user.test.jsx
+++ b/webapp/tests/client_user.test.jsx
@@ -21,6 +21,21 @@ describe('Client.User', function() {
});
});
+ it('getUser', function(done) {
+ TestHelper.initBasic(() => {
+ TestHelper.basicClient().getUser(
+ TestHelper.basicUser().id,
+ function(data) {
+ assert.equal(data.id, TestHelper.basicUser().id);
+ done();
+ },
+ function(err) {
+ done(new Error(err.message));
+ }
+ );
+ });
+ });
+
it('getInitialLoad', function(done) {
TestHelper.initBasic(() => {
TestHelper.basicClient().getInitialLoad(