You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
27 lines
751 B
TypeScript
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
|
|
);
|
|
});
|
|
});
|