mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
feat: small fixes
This commit is contained in:
@@ -581,6 +581,15 @@ describe('Sorted Set methods', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('should return empty array if values is an empty array', function (done) {
|
||||
db.sortedSetScores('sortedSetTest1', [], function (err, scores) {
|
||||
assert.ifError(err);
|
||||
assert.equal(arguments.length, 2);
|
||||
assert.deepStrictEqual(scores, []);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should return scores properly', function (done) {
|
||||
db.sortedSetsScore(['zeroScore', 'sortedSetTest1', 'doesnotexist'], 'value1', function (err, scores) {
|
||||
assert.ifError(err);
|
||||
|
||||
Reference in New Issue
Block a user