1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-17 19:41:06 +03:00
Files
node-redis/lib/commands/HRANDFIELD_COUNT_WITHVALUES.spec.ts

22 lines
703 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient, describeHandleMinimumRedisVersion } from '../test-utils';
import { transformArguments } from './HRANDFIELD_COUNT_WITHVALUES';
describe('HRANDFIELD COUNT WITHVALUES', () => {
describeHandleMinimumRedisVersion([6, 2]);
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key', 1),
['HRANDFIELD', 'key', '1', 'WITHVALUES']
);
});
itWithClient(TestRedisServers.OPEN, 'client.hRandFieldCountWithValues', async client => {
assert.equal(
await client.hRandFieldCountWithValues('key', 1),
null
);
});
});