summaryrefslogtreecommitdiffstats
path: root/webapp/tests/client_channel.test.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/tests/client_channel.test.jsx')
-rw-r--r--webapp/tests/client_channel.test.jsx31
1 files changed, 31 insertions, 0 deletions
diff --git a/webapp/tests/client_channel.test.jsx b/webapp/tests/client_channel.test.jsx
index 154f70fef..e1ee6cf6d 100644
--- a/webapp/tests/client_channel.test.jsx
+++ b/webapp/tests/client_channel.test.jsx
@@ -48,6 +48,37 @@ describe('Client.Channels', function() {
});
});
+ it('createGroupChannel', function(done) {
+ TestHelper.initBasic(() => {
+ TestHelper.basicClient().createUser(
+ TestHelper.fakeUser(),
+ (user1) => {
+ TestHelper.basicClient().createUser(
+ TestHelper.fakeUser(),
+ function(user2) {
+ TestHelper.basicClient().createGroupChannel(
+ [user2.id, user1.id],
+ function(data) {
+ assert.equal(data.id.length > 0, true);
+ done();
+ },
+ function(err) {
+ done(new Error(err.message));
+ }
+ );
+ },
+ function(err) {
+ done(new Error(err.message));
+ }
+ );
+ },
+ function(err) {
+ done(new Error(err.message));
+ }
+ );
+ });
+ });
+
it('updateChannel', function(done) {
TestHelper.initBasic(() => {
var channel = TestHelper.basicChannel();