1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-19 07:02:06 +03:00
Files
node-redis/lib/commands/HRANDFIELD_COUNT_WITHVALUES.spec.ts
2021-06-18 16:51:30 -04:00

20 lines
620 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient } from '../test-utils';
import { transformArguments } from './HRANDFIELD_COUNT_WITHVALUES';
describe('HRANDFIELD COUNT WITHVALUES', () => {
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
);
});
});