From 5fd11bd674075c57cb5c6f9e4b90042c1a37b3b5 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Wed, 28 Dec 2016 14:44:32 +0100 Subject: 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 --- webapp/tests/client_user.test.jsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'webapp/tests') 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( -- cgit v1.2.3-1-g7c22