fix: #7842, groups.invite works with an array of uids

This commit is contained in:
Barış Soner Uşaklı
2019-08-18 21:51:32 -04:00
parent fa26855671
commit 1e0190abef
5 changed files with 39 additions and 33 deletions

View File

@@ -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 () {