You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
28 lines
736 B
TypeScript
28 lines
736 B
TypeScript
|
|
import { strict as assert } from 'assert';
|
|
import testUtils, { GLOBAL } from '../test-utils';
|
|
import { transformArguments } from './LREM';
|
|
|
|
describe('LREM', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments('key', 0, 'element'),
|
|
['LREM', 'key', '0', 'element']
|
|
);
|
|
});
|
|
|
|
testUtils.testWithClient('client.lRem', async client => {
|
|
assert.equal(
|
|
await client.lRem('key', 0, 'element'),
|
|
0
|
|
);
|
|
}, GLOBAL.SERVERS.OPEN);
|
|
|
|
testUtils.testWithCluster('cluster.lRem', async cluster => {
|
|
assert.equal(
|
|
await cluster.lRem('key', 0, 'element'),
|
|
0
|
|
);
|
|
}, GLOBAL.CLUSTERS.OPEN);
|
|
});
|