mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix(api): tests
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user