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

lots of todo commends

This commit is contained in:
leibale
2021-06-18 16:51:30 -04:00
parent 93938b4b91
commit 07f5e7f6b2
49 changed files with 604 additions and 242 deletions

View File

@@ -0,0 +1,19 @@
import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient } from '../test-utils';
import { transformArguments } from './SRANDMEMBER_COUNT';
describe('SRANDMEMBER COUNT', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key', 1),
['SRANDMEMBER', 'key', '1']
);
});
itWithClient(TestRedisServers.OPEN, 'client.sRandMemberCount', async client => {
assert.deepEqual(
await client.sRandMemberCount('key', 1),
[]
);
});
});