mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
feat: #11420, add new GET routes to retrieve pending and invited members of a group, plus accept/reject pending
This commit is contained in:
@@ -944,7 +944,8 @@ describe('Groups', () => {
|
||||
]);
|
||||
await requestMembership(uid1, uid2);
|
||||
await socketGroups.rejectAll({ uid: adminUid }, { groupName: 'PrivateCanJoin' });
|
||||
const pending = await Groups.getPending('PrivateCanJoin');
|
||||
let pending = await Groups.getPending('PrivateCanJoin');
|
||||
pending = pending.map(u => u.uid);
|
||||
assert.equal(pending.length, 0);
|
||||
await requestMembership(uid1, uid2);
|
||||
await socketGroups.acceptAll({ uid: adminUid }, { groupName: 'PrivateCanJoin' });
|
||||
|
||||
Reference in New Issue
Block a user