1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00
Files
node-redis/packages/client/lib/commands/CLUSTER_INFO.spec.ts
Leibale a5a4cb45ea wip
2023-11-09 11:12:41 -05:00

21 lines
566 B
TypeScript

import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CLUSTER_INFO from './CLUSTER_INFO';
describe('CLUSTER INFO', () => {
it('transformArguments', () => {
assert.deepEqual(
CLUSTER_INFO.transformArguments(),
['CLUSTER', 'INFO']
);
});
testUtils.testWithCluster('clusterNode.clusterInfo', async cluster => {
const client = await cluster.nodeClient(cluster.masters[0]);
assert.equal(
typeof await client.clusterInfo(),
'string'
);
}, GLOBAL.CLUSTERS.OPEN);
});