You've already forked node-redis
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:
26
lib/commands/LPOP.spec.ts
Normal file
26
lib/commands/LPOP.spec.ts
Normal 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
|
||||
);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user