You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
27 lines
772 B
TypeScript
27 lines
772 B
TypeScript
import { strict as assert } from 'assert';
|
|
import { itWithClient, itWithCluster, TestRedisClusters, TestRedisServers } from '../test-utils';
|
|
import { transformArguments } from './COMMAND_COUNT';
|
|
|
|
describe('COMMAND COUNT', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments(),
|
|
['COMMAND', 'COUNT']
|
|
);
|
|
});
|
|
|
|
itWithClient(TestRedisServers.OPEN, 'client.commandCount', async client => {
|
|
assert.equal(
|
|
typeof await client.commandCount(),
|
|
'number'
|
|
);
|
|
});
|
|
|
|
itWithCluster(TestRedisClusters.OPEN, 'cluster.commandCount', async cluster => {
|
|
assert.equal(
|
|
typeof await cluster.commandCount(),
|
|
'number'
|
|
);
|
|
});
|
|
});
|