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

29 lines
628 B
TypeScript

import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import INFO from './INFO';
describe('INFO', () => {
describe('transformArguments', () => {
it('simple', () => {
assert.deepEqual(
INFO.transformArguments(),
['INFO']
);
});
it('server section', () => {
assert.deepEqual(
INFO.transformArguments('server'),
['INFO', 'server']
);
});
});
testUtils.testWithClient('client.info', async client => {
assert.equal(
typeof await client.info(),
'string'
);
}, GLOBAL.SERVERS.OPEN);
});