You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
20 lines
530 B
TypeScript
20 lines
530 B
TypeScript
import { strict as assert } from 'assert';
|
|
import { TestRedisServers, itWithClient } from '../test-utils';
|
|
import { transformArguments } from './ZCOUNT';
|
|
|
|
describe('ZCOUNT', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments('key', 0, 1),
|
|
['ZCOUNT', 'key', '0', '1']
|
|
);
|
|
});
|
|
|
|
itWithClient(TestRedisServers.OPEN, 'client.zCount', async client => {
|
|
assert.equal(
|
|
await client.zCount('key', 0, 1),
|
|
0
|
|
);
|
|
});
|
|
});
|