summaryrefslogtreecommitdiffstats
path: root/webapp/tests
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/tests')
-rw-r--r--webapp/tests/client_channel.test.jsx26
1 files changed, 24 insertions, 2 deletions
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) {