mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
fix: closes #11343, don't crash if tags array is empty
This commit is contained in:
@@ -996,6 +996,11 @@ describe('Sorted Set methods', () => {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should return empty array if sets is empty', async () => {
|
||||
const result = await db.getSortedSetRevUnion({ sets: [], start: 0, stop: -1 });
|
||||
assert.deepStrictEqual(result, []);
|
||||
});
|
||||
});
|
||||
|
||||
describe('sortedSetIncrBy()', () => {
|
||||
|
||||
Reference in New Issue
Block a user