You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
22 lines
676 B
TypeScript
22 lines
676 B
TypeScript
import { strict as assert } from 'assert';
|
|
import testUtils, { GLOBAL } from '../test-utils';
|
|
import { transformArguments } from './ZRANDMEMBER_COUNT_WITHSCORES';
|
|
|
|
describe('ZRANDMEMBER COUNT WITHSCORES', () => {
|
|
testUtils.isVersionGreaterThanHook([6, 2, 5]);
|
|
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments('key', 1),
|
|
['ZRANDMEMBER', 'key', '1', 'WITHSCORES']
|
|
);
|
|
});
|
|
|
|
testUtils.testWithClient('client.zRandMemberCountWithScores', async client => {
|
|
assert.deepEqual(
|
|
await client.zRandMemberCountWithScores('key', 1),
|
|
[]
|
|
);
|
|
}, GLOBAL.SERVERS.OPEN);
|
|
});
|