From fa807d8e436e87b8c1749ea54c293a15c67f7f29 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Wed, 27 Apr 2016 16:02:58 -0400 Subject: Fixing permalinks to channels your not a memeber of (#2805) --- webapp/tests/client_channel.test.jsx | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'webapp/tests') diff --git a/webapp/tests/client_channel.test.jsx b/webapp/tests/client_channel.test.jsx index b8374123c..9d88f3de0 100644 --- a/webapp/tests/client_channel.test.jsx +++ b/webapp/tests/client_channel.test.jsx @@ -162,8 +162,30 @@ describe('Client.Channels', function() { function() { TestHelper.basicClient().joinChannel( channel.id, - function(data) { - assert.equal(data.id, channel.id); + function() { + done(); + }, + function(err) { + done(new Error(err.message)); + } + ); + }, + function(err) { + done(new Error(err.message)); + } + ); + }); + }); + + it('joinChannelByName', function(done) { + TestHelper.initBasic(() => { + var channel = TestHelper.basicChannel(); + TestHelper.basicClient().leaveChannel( + channel.id, + function() { + TestHelper.basicClient().joinChannelByName( + channel.name, + function() { done(); }, function(err) { -- cgit v1.2.3-1-g7c22