1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/lib/commands/COMMAND_COUNT.spec.ts
2021-10-04 17:30:18 -04:00

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'
);
});
});