summaryrefslogtreecommitdiffstats
path: root/webapp/tests/client_user.test.jsx
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2016-11-22 00:50:57 +0100
committerJoram Wilander <jwawilander@gmail.com>2016-11-21 18:50:57 -0500
commitd57ab7a81e295c0f1a731f1f4f5fa04d5cba398b (patch)
tree92c3505680dbecce1bc933d1257194fd0b6b6790 /webapp/tests/client_user.test.jsx
parent82352e63633f95d546fc2d4b9f768a62cb4b6d58 (diff)
downloadchat-d57ab7a81e295c0f1a731f1f4f5fa04d5cba398b.tar.gz
chat-d57ab7a81e295c0f1a731f1f4f5fa04d5cba398b.tar.bz2
chat-d57ab7a81e295c0f1a731f1f4f5fa04d5cba398b.zip
PLT-3762 - Add API call to get a user by their username (#4611)
* PLT-3762 - Add API call to get a user by their username * fix lint * update rote * update per code review * update per code review * remove first/last name is not used in this test
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 5e70c5c3e..2e5b80dd7 100644
--- a/webapp/tests/client_user.test.jsx
+++ b/webapp/tests/client_user.test.jsx
@@ -36,6 +36,21 @@ describe('Client.User', function() {
});
});
+ it('getByUsername', function(done) {
+ TestHelper.initBasic(() => {
+ TestHelper.basicClient().getByUsername(
+ TestHelper.basicUser().username,
+ function(data) {
+ assert.equal(data.username, TestHelper.basicUser().username);
+ done();
+ },
+ function(err) {
+ done(new Error(err.message));
+ }
+ );
+ });
+ });
+
it('getInitialLoad', function(done) {
TestHelper.initBasic(() => {
TestHelper.basicClient().getInitialLoad(