You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Add a lot more tests to indicate that the everything is consistent
Add a test for #390 More special cases
This commit is contained in:
@@ -75,6 +75,13 @@ describe("The 'sort' method", function () {
|
||||
});
|
||||
});
|
||||
|
||||
it("handles sorting with a 'by' pattern and 2 'get' patterns with the array syntax", function (done) {
|
||||
client.sort(['x', 'by', 'w*', 'asc', 'get', 'o*', 'get', 'p*'], function (err, sorted) {
|
||||
assert.deepEqual(sorted, ['foo', 'bux', 'bar', 'tux', 'baz', 'lux', 'buz', 'qux']);
|
||||
return done(err);
|
||||
});
|
||||
});
|
||||
|
||||
it("sorting with a 'by' pattern and 2 'get' patterns and stores results", function (done) {
|
||||
client.sort('x', 'by', 'w*', 'asc', 'get', 'o*', 'get', 'p*', 'store', 'bacon', function (err) {
|
||||
if (err) return done(err);
|
||||
|
Reference in New Issue
Block a user