mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
feat: add getSortedSetMembers
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user