You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
29 lines
834 B
TypeScript
29 lines
834 B
TypeScript
import { strict as assert } from 'assert';
|
|
import { TestRedisServers, itWithClient, itWithCluster, TestRedisClusters, describeHandleMinimumRedisVersion } from '../test-utils';
|
|
import { transformArguments } from './LPOP_COUNT';
|
|
|
|
describe('LPOP COUNT', () => {
|
|
describeHandleMinimumRedisVersion([6, 2]);
|
|
|
|
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
|
|
);
|
|
});
|
|
});
|