You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
fix ZREMRANGEBYRANK
This commit is contained in:
@@ -1,19 +1,22 @@
|
||||
// import { strict as assert } from 'assert';
|
||||
// import testUtils, { GLOBAL } from '../test-utils';
|
||||
// import { transformArguments } from './ZREMRANGEBYRANK';
|
||||
import { strict as assert } from 'assert';
|
||||
import testUtils, { GLOBAL } from '../test-utils';
|
||||
import ZREMRANGEBYRANK from './ZREMRANGEBYRANK';
|
||||
|
||||
// describe('ZREMRANGEBYRANK', () => {
|
||||
// it('transformArguments', () => {
|
||||
// assert.deepEqual(
|
||||
// transformArguments('key', 0, 1),
|
||||
// ['ZREMRANGEBYRANK', 'key', '0', '1']
|
||||
// );
|
||||
// });
|
||||
describe('ZREMRANGEBYRANK', () => {
|
||||
it('transformArguments', () => {
|
||||
assert.deepEqual(
|
||||
ZREMRANGEBYRANK.transformArguments('key', 0, 1),
|
||||
['ZREMRANGEBYRANK', 'key', '0', '1']
|
||||
);
|
||||
});
|
||||
|
||||
// testUtils.testWithClient('client.zRemRangeByRank', async client => {
|
||||
// assert.equal(
|
||||
// await client.zRemRangeByRank('key', 0, 1),
|
||||
// 0
|
||||
// );
|
||||
// }, GLOBAL.SERVERS.OPEN);
|
||||
// });
|
||||
testUtils.testAll('zRemRangeByRank', async client => {
|
||||
assert.equal(
|
||||
await client.zRemRangeByRank('key', 0, 1),
|
||||
0
|
||||
);
|
||||
}, {
|
||||
client: GLOBAL.SERVERS.OPEN,
|
||||
cluster: GLOBAL.CLUSTERS.OPEN
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user