feat: small fixes

This commit is contained in:
Barış Soner Uşaklı
2018-12-17 18:56:09 -05:00
parent b2a74b4172
commit fef7e13c9e
8 changed files with 34 additions and 20 deletions

View File

@@ -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);