summaryrefslogtreecommitdiffstats
path: root/webapp/tests
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/tests')
-rw-r--r--webapp/tests/client_channel.test.jsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/webapp/tests/client_channel.test.jsx b/webapp/tests/client_channel.test.jsx
index e8466021f..08c821f3c 100644
--- a/webapp/tests/client_channel.test.jsx
+++ b/webapp/tests/client_channel.test.jsx
@@ -426,5 +426,20 @@ describe('Client.Channels', function() {
);
});
});
+
+ it('getChannelByName', function(done) {
+ TestHelper.initBasic(() => {
+ TestHelper.basicClient().getChannelByName(
+ TestHelper.basicChannel().name,
+ function(data) {
+ assert.equal(data.name, TestHelper.basicChannel().name);
+ done();
+ },
+ function(err) {
+ done(new Error(err.message));
+ }
+ );
+ });
+ });
});