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

20 lines
559 B
TypeScript

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