You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
29 lines
889 B
TypeScript
29 lines
889 B
TypeScript
import { strict as assert } from 'assert';
|
|
import testUtils, { GLOBAL } from '../test-utils';
|
|
import { transformArguments } from './LMOVE';
|
|
|
|
describe('LMOVE', () => {
|
|
testUtils.isVersionGreaterThanHook([6, 2]);
|
|
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments('source', 'destination', 'LEFT', 'RIGHT'),
|
|
['LMOVE', 'source', 'destination', 'LEFT', 'RIGHT']
|
|
);
|
|
});
|
|
|
|
testUtils.testWithClient('client.lMove', async client => {
|
|
assert.equal(
|
|
await client.lMove('source', 'destination', 'LEFT', 'RIGHT'),
|
|
null
|
|
);
|
|
}, GLOBAL.SERVERS.OPEN);
|
|
|
|
testUtils.testWithCluster('cluster.lMove', async cluster => {
|
|
assert.equal(
|
|
await cluster.lMove('{tag}source', '{tag}destination', 'LEFT', 'RIGHT'),
|
|
null
|
|
);
|
|
}, GLOBAL.CLUSTERS.OPEN);
|
|
});
|