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

20 lines
531 B
TypeScript

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