feat: add getSortedSetMembers

This commit is contained in:
Barış Soner Uşaklı
2020-05-26 22:55:28 -04:00
parent 2727f472ed
commit 0009f54e6e
4 changed files with 21 additions and 0 deletions

View File

@@ -870,6 +870,13 @@ describe('Sorted Set methods', function () {
});
describe('getSortedSetsMembers', function () {
it('should return members of a sorted set', async function () {
const result = await db.getSortedSetMembers('sortedSetTest1');
result.forEach(function (element) {
assert(['value1', 'value2', 'value3'].includes(element));
});
});
it('should return members of multiple sorted sets', function (done) {
db.getSortedSetsMembers(['doesnotexist', 'sortedSetTest1'], function (err, sortedSets) {
assert.equal(err, null);