mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fix test
This commit is contained in:
@@ -172,13 +172,15 @@ describe('Sorted Set methods', function() {
|
|||||||
assert.equal(count, 2);
|
assert.equal(count, 2);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should return number of elements between scores -inf +inf inclusive', function(done) {
|
||||||
db.sortedSetCount('sortedSetTest1', '-inf', '+inf', function(err, count) {
|
db.sortedSetCount('sortedSetTest1', '-inf', '+inf', function(err, count) {
|
||||||
assert.equal(err, null);
|
assert.equal(err, null);
|
||||||
assert.equal(arguments.length, 2);
|
assert.equal(arguments.length, 2);
|
||||||
assert.equal(count, 3);
|
assert.equal(count, 3);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user