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.spec.ts

22 lines
647 B
TypeScript

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