You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
wip
This commit is contained in:
@@ -13,11 +13,22 @@ describe('ZINTERCARD', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('with limit', () => {
|
||||
assert.deepEqual(
|
||||
ZINTERCARD.transformArguments(['1', '2'], 1),
|
||||
['ZINTERCARD', '2', '1', '2', 'LIMIT', '1']
|
||||
);
|
||||
describe('with LIMIT', () => {
|
||||
it('plain number (backwards compatibility)', () => {
|
||||
assert.deepEqual(
|
||||
ZINTERCARD.transformArguments(['1', '2'], 1),
|
||||
['ZINTERCARD', '2', '1', '2', 'LIMIT', '1']
|
||||
);
|
||||
});
|
||||
|
||||
it('{ LIMIT: number }', () => {
|
||||
assert.deepEqual(
|
||||
ZINTERCARD.transformArguments(['1', '2'], {
|
||||
LIMIT: 1
|
||||
}),
|
||||
['ZINTERCARD', '2', '1', '2', 'LIMIT', '1']
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user