fix(api): tests

v1.18.x
Julian Lam 4 years ago
parent 931105e6cb
commit 80ee3dfbd1

@ -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);
};

@ -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();
});
});

Loading…
Cancel
Save