1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-13 10:02:24 +03:00
Files
node-redis/lib/commands/ZREMRANGEBYLEX.spec.ts
2021-06-15 19:27:41 -04:00

20 lines
584 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient } from '../test-utils';
import { transformArguments } from './ZREMRANGEBYLEX';
describe('ZREMRANGEBYLEX', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key', '[a', '[b'),
['ZREMRANGEBYLEX', 'key', '[a', '[b']
);
});
itWithClient(TestRedisServers.OPEN, 'client.zRemRangeByLex', async client => {
assert.equal(
await client.zRemRangeByLex('key', '[a', '[b'),
0
);
});
});