1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

some more commands

This commit is contained in:
Leibale
2023-05-01 06:58:27 -04:00
parent a5d0963fcf
commit 4304f4dba3
22 changed files with 354 additions and 328 deletions

View File

@@ -1,26 +1,22 @@
import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import { transformArguments } from './LLEN';
import LLEN from './LLEN';
describe('LLEN', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key'),
['LLEN', 'key']
);
});
it('transformArguments', () => {
assert.deepEqual(
LLEN.transformArguments('key'),
['LLEN', 'key']
);
});
testUtils.testWithClient('client.lLen', async client => {
assert.equal(
await client.lLen('key'),
0
);
}, GLOBAL.SERVERS.OPEN);
testUtils.testWithCluster('cluster.lLen', async cluster => {
assert.equal(
await cluster.lLen('key'),
0
);
}, GLOBAL.CLUSTERS.OPEN);
testUtils.testAll('lLen', async client => {
assert.equal(
await client.lLen('key'),
0
);
}, {
client: GLOBAL.SERVERS.OPEN,
cluster: GLOBAL.CLUSTERS.OPEN
});
});