diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2016-12-28 14:44:32 +0100 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-12-28 10:44:32 -0300 |
commit | 5fd11bd674075c57cb5c6f9e4b90042c1a37b3b5 (patch) | |
tree | 25fb7c5adfa7465b235936fac7aa4293ce7e2e79 /webapp/tests | |
parent | 14f1f4e9b119f00246a7a5f49e607413c99e4f74 (diff) | |
download | chat-5fd11bd674075c57cb5c6f9e4b90042c1a37b3b5.tar.gz chat-5fd11bd674075c57cb5c6f9e4b90042c1a37b3b5.tar.bz2 chat-5fd11bd674075c57cb5c6f9e4b90042c1a37b3b5.zip |
Add API call to get a user by their email address (#4884)
* Add API call to get a user by their email address
* update per review
Diffstat (limited to 'webapp/tests')
-rw-r--r-- | webapp/tests/client_user.test.jsx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/webapp/tests/client_user.test.jsx b/webapp/tests/client_user.test.jsx index 3af29661a..741f494bb 100644 --- a/webapp/tests/client_user.test.jsx +++ b/webapp/tests/client_user.test.jsx @@ -51,6 +51,21 @@ describe('Client.User', function() { }); }); + it('getByEmail', function(done) { + TestHelper.initBasic(() => { + TestHelper.basicClient().getByEmail( + TestHelper.basicUser().email, + function(data) { + assert.equal(data.email, TestHelper.basicUser().email); + done(); + }, + function(err) { + done(new Error(err.message)); + } + ); + }); + }); + it('getInitialLoad', function(done) { TestHelper.initBasic(() => { TestHelper.basicClient().getInitialLoad( |