mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
Categories optimize (#6999)
* WIP * fix category page * fix counts, and copyPrivileges * fix lint * more fixes, * redis fix * fix test * fix category test * remove getParentsAndChildren
This commit is contained in:
committed by
GitHub
parent
96a2be9b55
commit
53ad2bbd6e
@@ -147,6 +147,24 @@ describe('Sorted Set methods', function () {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should return duplicates if two sets have same elements', function (done) {
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
db.sortedSetAdd('dupezset1', [1, 2], ['value 1', 'value 2'], next);
|
||||
},
|
||||
function (next) {
|
||||
db.sortedSetAdd('dupezset2', [2, 3], ['value 2', 'value 3'], next);
|
||||
},
|
||||
function (next) {
|
||||
db.getSortedSetRange(['dupezset1', 'dupezset2'], 0, -1, next);
|
||||
},
|
||||
function (data, next) {
|
||||
assert.deepStrictEqual(data, ['value 1', 'value 2', 'value 2', 'value 3']);
|
||||
next();
|
||||
},
|
||||
], done);
|
||||
});
|
||||
});
|
||||
|
||||
describe('getSortedSetRevRange()', function () {
|
||||
|
||||
Reference in New Issue
Block a user