fix tests and mongo method

This commit is contained in:
barisusakli
2014-12-31 15:59:57 -05:00
parent b443aec450
commit 03ee524121
2 changed files with 2 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ module.exports = function(db, module) {
};
module.getSortedSetRangeByScoreWithScores = function(key, start, count, min, max, callback) {
getSortedSetRangeByScore(key, start, count, min, max, -1, true, callback);
getSortedSetRangeByScore(key, start, count, min, max, 1, true, callback);
};
module.getSortedSetRevRangeByScoreWithScores = function(key, start, count, max, min, callback) {

View File

@@ -118,7 +118,7 @@ describe('Sorted Set methods', function() {
describe('getSortedSetRevRangeByScore()', function() {
it('should get count elements with score between max min sorted by score highest to lowest', function(done) {
db.getSortedSetRevRangeByScore('sorted2', 0, -1, '+inf', 1, function(err, values) {
db.getSortedSetRevRangeByScore('sorted2', 0, -1, '+inf', 2, function(err, values) {
assert.equal(err, null);
assert.equal(arguments.length, 2);
assert.deepEqual(values, ['value3', 'value2']);