From 80ee3dfbd144c1d9d85c3685b9a3092eaf74a8b6 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 22 Dec 2020 14:39:42 -0500 Subject: [PATCH] fix(api): tests --- src/socket.io/groups.js | 1 - test/groups.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/socket.io/groups.js b/src/socket.io/groups.js index 8ed59e2bf6..73f6af7d81 100644 --- a/src/socket.io/groups.js +++ b/src/socket.io/groups.js @@ -195,7 +195,6 @@ SocketGroups.update = async (socket, data) => { const slug = await groups.getGroupField(data.groupName, 'slug'); await api.groups.update(socket, { slug, ...data.values }); - // await groups.update(data.groupName, data.values); }; diff --git a/test/groups.js b/test/groups.js index 643eff6ee0..3543499b97 100644 --- a/test/groups.js +++ b/test/groups.js @@ -1189,7 +1189,7 @@ describe('Groups', function () { }, }; socketGroups.update({ uid: adminUid }, data, function (err) { - assert.equal(err.message, '[[error:no-group]]'); + assert.equal(err.message, '[[error:invalid-group-name]]'); done(); }); });