You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
28 lines
761 B
TypeScript
28 lines
761 B
TypeScript
|
|
import { strict as assert } from 'assert';
|
|
import { TestRedisServers, itWithClient, itWithCluster, TestRedisClusters } from '../test-utils';
|
|
import { transformArguments } from './LRANGE';
|
|
|
|
describe('LRANGE', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments('key', 0, -1),
|
|
['LRANGE', 'key', '0', '-1']
|
|
);
|
|
});
|
|
|
|
itWithClient(TestRedisServers.OPEN, 'client.lRange', async client => {
|
|
assert.deepEqual(
|
|
await client.lRange('key', 0, -1),
|
|
[]
|
|
);
|
|
});
|
|
|
|
itWithCluster(TestRedisClusters.OPEN, 'cluster.lRange', async cluster => {
|
|
assert.deepEqual(
|
|
await cluster.lRange('key', 0, -1),
|
|
[]
|
|
);
|
|
});
|
|
});
|