1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00
This commit is contained in:
Leibale
2023-11-09 11:12:41 -05:00
parent 98970fab2e
commit a5a4cb45ea
15 changed files with 222 additions and 261 deletions

View File

@@ -1,20 +1,28 @@
import { strict as assert } from 'node:assert';
import { transformArguments } from './INFO';
import testUtils, { GLOBAL } from '../test-utils';
import INFO from './INFO';
describe('INFO', () => {
describe('transformArguments', () => {
it('simple', () => {
assert.deepEqual(
transformArguments(),
['INFO']
);
});
it('server section', () => {
assert.deepEqual(
transformArguments('server'),
['INFO', 'server']
);
});
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);
});