1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/lib/commands/LPOP_COUNT.spec.ts

27 lines
751 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient, itWithCluster, TestRedisClusters } from '../test-utils';
import { transformArguments } from './LPOP_COUNT';
describe('LPOP COUNT', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key', 1),
['LPOP', 'key', '1']
);
});
itWithClient(TestRedisServers.OPEN, 'client.lPopCount', async client => {
assert.equal(
await client.lPopCount('key', 1),
null
);
});
itWithCluster(TestRedisClusters.OPEN, 'cluster.lPop', async cluster => {
assert.equal(
await cluster.lPopCount('key', 1),
null
);
});
});