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

20 lines
536 B
TypeScript

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