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

20 lines
551 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient } from '../test-utils';
import { transformArguments } from './ZPOPMAX_COUNT';
describe('ZPOPMAX COUNT', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key', 1),
['ZPOPMAX', 'key', '1']
);
});
itWithClient(TestRedisServers.OPEN, 'client.zPopMaxCount', async client => {
assert.deepEqual(
await client.zPopMaxCount('key', 1),
[]
);
});
});