You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
29 lines
628 B
TypeScript
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);
|
|
});
|