1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00

add support for List commands, fix some Sorted Set commands, add some cluster commands, spawn cluster for testing, add support for command options in cluster, and more

This commit is contained in:
leibale
2021-06-23 18:12:12 -04:00
parent ff6125c423
commit faab94fab2
52 changed files with 1096 additions and 54 deletions

26
lib/commands/LPOP.spec.ts Normal file
View File

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