mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 05:05:58 +02:00
fix: #7842, groups.invite works with an array of uids
This commit is contained in:
@@ -22,6 +22,14 @@ describe('Set methods', function () {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should not do anything if values array is empty', async function () {
|
||||
await db.setAdd('emptyArraySet', []);
|
||||
const members = await db.getSetMembers('emptyArraySet');
|
||||
const exists = await db.exists('emptyArraySet');
|
||||
assert.deepStrictEqual(members, []);
|
||||
assert(!exists);
|
||||
});
|
||||
});
|
||||
|
||||
describe('getSetMembers()', function () {
|
||||
|
||||
Reference in New Issue
Block a user