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